MikkiCoding
Search…
Welcome!
👩🏫
👩💻 Introduction of Programming
การทำงานของคอมพิวเตอร์เบื้องต้น
การแปลภาษาของโปรแกรม
Flowchart
Preprocesser Directory
Basic Coding
🐍
Python for Beginner
แนะนำภาษา python
ติดตั้งโปรแกรม python ลงบน computer
การพิมพ์คำสั่งขั้นต้น
Data type และการประกาศตัวแปร
Comparison
Condition Statement
Loop Statement
การใช้ break, continue และ pass ใน statement
Function
Data structure
การทำงานร่วมกันกับไฟล์
Exception handling
Document และแหล่งเรียนรู้อื่นๆ
Website
Github
Facebook Page
Twitter
Youtube
Powered By
GitBook
การพิมพ์คำสั่งขั้นต้น
การพิมพ์ Hello world ออกมาสู่หน้าจอ เวลาเราเรียนภาษาใหม่ๆ มักจะเป็นคำนี้เสมอเลยเนอะ คำสั่งใช้ง่ายมากๆเลย
1
print
"Hello world"
#ง่ายๆเลย แต่อันนี้ของ python 2.7
2
print
(
"Hello world"
)
#อันนี้ของ python 3.0 ขึ้นไป
Copied!
นี่คือสิ่งที่เราบอกว่า syntax ต่างกันไงหล่ะ
ใช้ # เพื่อ comment code นะจ๊ะ
ข้อควรระวัง ในภาษา python ไม่ได้ใช้ ; ในการสิ้นสุดคำสั่งนะ และใช้ 2space แทน tab
Python for Beginner - Previous
ติดตั้งโปรแกรม python ลงบน computer
Next - Python for Beginner
Data type และการประกาศตัวแปร
Last modified
4mo ago
Copy link
Edit on GitHub