摘要: Python assert(断言)可以分辨后面的判断是否正确,如果错误会报错 a = 1 assert type(a) is int print('No problem') 输出结果: No problem a = '1' assert type(a) is int print('No proble 阅读全文
posted @ 2020-03-20 18:59 小娜子成长记 阅读(210) 评论(0) 推荐(0) 编辑