# Day 01 - 資料型態 / print, if簡單用法 ###### tags: `python教學` ```python= print("Hello World") ``` ### 資料型態 Interget(int) 整數 ```python= age = 22 ``` String(str) 字串 ```python= name = "Lu-Ching-Yu" ``` Boolean(bool) 布林 = True/False ```python= male = True ``` ### print資料 ```python= print(name) print(age) ``` :::spoiler 輸出 ```python= Lu-Ching-Yu 22 ``` ::: 句子 ```python= print("我是"+name) print(str(age)+"歲") ``` :::spoiler 輸出 ```python= 我是Lu-Ching-Yu 22歲 ``` ::: ### if :::warning 一個 = 是設定 , 兩個 = 是判斷 ::: ```python= if male == True: print("男性") else: print("女性") ``` ### 補充 - 引號 單引號 ```python= A = 'HelloWorld' ``` 雙引號-可以使用「連行符號」 設定的時候可以隔行寫字(輸出的時候不會隔行) ```python= B = "Hello\ World" ``` 三引號-可以直接格行/跳行寫字 ```python= C = """ I'm C Hello , World, hahaha, end""" ```