Python Programming
Tuesday, May 10, 2011
7. การตรวจสอบชนิดตัวแปร (Variable Type)
เราใช้คำสั่ง
type(
ตัวแปร
)
เพื่อตรวจสอบชนิดของตัวแปร
ตัวอย่าง
x = 100
type(x)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment