# Python 程式設計 create by aura ## 輸出 ```python= print('Hello World') ``` ## 變數 Python中的變數可以先不用宣告與定義其資料型態 資料型態常見的有:整數、浮點數(小數)、字元、字串 ```python= a=10 a='Hello' ``` ## 輸入 以下input()函式可以將由鍵盤輸入的資料儲存在變數中 ```python= a=input() ``` 如果輸入的資料確定為何種資料型態,例如整數,須對函數做資料型態之轉換,範例如下 ```python= a=int(input()) ``` ## 註解 ## 判斷 ## 迴圈 ###### tags: `python`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up