天天看点

元进Python(1)---字典添加键值对和打包生成可执行文件

1.【字典添加键值对】

Mest=['A','B','C']

i=0

mapping={}

while i<len(Mest):

    mapping.update({i:Mest[i]})

    i+=1
    
print(mapping)      
(venv) H:\Alphism\venv\Scripts>python pyinstaller.exe -F -w -i mest.ico test.py