Quick actions

cmd+k|ctrl+k

Navigation

Languages

Python 3 字典类型:3

Snippet info

Language

Python

Visibility

public

Author

fenghestudio

Created

2019-11-24T09:14:30Z

Updated

2019-11-24T09:14:30Z

dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}
dict['Age'] = 8; # update existing entry
dict['School'] = "DPS School" # Add new entry

print ("dict['Age']: ", dict['Age'])
print ("dict['School']: ", dict['School'])
INFO