01,變量,常量,表達式,變量類型

1.判斷 if 條件 條件滿足: xxxxxx 條件不滿足: xxxxxx 變量的類型 a = 100 b = 3.14 c = 「xie」 type(a)#int type(b)#float type©#str type可以判斷是什麼類型 input獲取的所有數據,都當做字符串類型 20—>input>「20」 例子: age = input() age_num = int(age)#int去除
相關文章
相關標籤/搜索