奇迹969

 

2019年3月27日

各种 错误

摘要: 1. print(int(bool)) #int()里只能为字符串,数字,len() TypeError: int() argument must be a string, a bytes-like object or a number, not 'type' 可以print(str(bool)) 阅读全文

posted @ 2019-03-27 17:18 奇迹969 阅读(175) 评论(0) 推荐(0) 编辑

int bool 字符串 列表 字典 集合

摘要: 1.int和bool 2. str int bool list set dict tuple 相互转换 print(str(bool)) <class 'bool'> bool(int//str/list/dic/set)空则为Flase有则为True set(list),tuple(list),s 阅读全文

posted @ 2019-03-27 15:35 奇迹969 阅读(190) 评论(0) 推荐(0) 编辑

导航