# 函數統整 ## 輸出 ### `print ( ) 輸出` > 恩,就是==輸出用的== ### `.format ( ) 格式化輸出` > 在 `print ( )`內使用,與 `{ }` 搭配使用 > > 範例: > ```py= > x = 'Hi!' > y = 'How are you?' > print ( '{} {} 翻譯:嗨!你好嗎?' .format(x,y)) > > # 輸出:Hi! How are you? 翻譯:嗨!你好嗎? > ``` ### `,end = 不換行` ### `\n 換行` ### `\t 空格` ### `type() 型別` > 將它放在 `print ( )`時,它會告訴你變數的~~性別~~ > > 範例: > ```python= > x = 10 > print(type(x)) > > # 輸出:<class 'int'> > ```
×
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