ทำความรู้จักกับภาษา python (8) : ตัวแปรชนิด Dictionary (ดิกชันนารี)
Moderators: mindphp, ผู้ดูแลกระดาน
- chatee supasand
- PHP VIP Members
- Posts: 1666
- Joined: 04/06/2019 10:06 am
Re: ทำความรู้จักกับภาษา python (8) : ตัวแปรชนิด Dictionary (ดิกชันนารี)
ตามมาจากวีดีโอใน ยูทูปครับ อธิบายได้เข้าใจมากครับ

- jirawoot
- PHP VIP Members
- Posts: 3130
- Joined: 17/06/2019 10:30 am
Re: ทำความรู้จักกับภาษา python (8) : ตัวแปรชนิด Dictionary (ดิกชันนารี)
Code: Select all
dict1={}
dict1['one']='hello'
dict1[2]= 'hello2'
dict2={1:'one', 2:'twe', 'tree':3}
print(dict1)
print(dict2)
-
- Similar Topics
- Replies
- Views
- Last post
-
-
ตัวแปรชนิด Dictionary (ดิกชันนารี่) ใน Python (ไพทอน)
by md040 » 30/12/2016 11:04 am » in Python Knowledge - 1 Replies
- 256 Views
-
Last post by md040
30/12/2016 11:05 am
-
-
-
ทำความรู้จักกับภาษา python (6) : ตัวแปรชนิด List (ลิส)
by dawthana » 28/12/2016 2:25 pm » in Python Knowledge - 7 Replies
- 803 Views
-
Last post by jirawoot
19/06/2019 2:43 pm
-
-
-
ทำความรู้จักกับภาษา python (7) : ตัวแปรชนิด Tuple(ทูเปิล)
by dawthana » 28/12/2016 3:38 pm » in Python Knowledge - 7 Replies
- 716 Views
-
Last post by jirawoot
19/06/2019 3:02 pm
-
-
- 1 Replies
- 2548 Views
-
Last post by mindphp
25/09/2019 9:09 pm
-
-
ทำความรู้จักกับภาษา python (23) : การใช้ from...import (ฟอร์ม...อิมพอร์ต) ในภาษา python (ไพทอน)
by dawthana » 12/01/2017 3:24 pm » in Python Knowledge - 9 Replies
- 2482 Views
-
Last post by jirawoot
21/06/2019 10:07 am
-
Who is online
Users browsing this forum: No registered users and 2 guests