python的字典與perl的hash的對比

[crsusr@rws1270149 python_study]$ cat mypy.py #!/usr/bin/python3.7 #字典實例 python的字典等同於perl的hash dict1 = dict(name='wang fang',age=42,salary=400000) #perl hash的下標用的是{},python的下標不管是列表仍是字典都使用的是[]中括號 pr
相關文章
相關標籤/搜索