درسها
صفحه من
برترین ها
پیام ها
اعلان ها
قبلی
فهرست
بعدی
سازنده dict().(The dict() Constructor)
توسط :
اکبر خلیل زاده
در تاریخ
1402/10/16
ساعت
09:30
همچنین می توان از سازنده
dict()
برای ایجاد یک
فرهنگ لغت جدید:
مثال
thisdict = dict(brand="Ford", model="Mustang", year=1964)
# note that keywords are not string literals
# note the use of equals rather than colon for the assignment
print(thisdict)