摘要: 1.对象的布尔值 #测试对象的布尔值 print(' 以下对象布尔值全为False ') print(bool(False)) #False print(bool(0)) #False print(bool(0.0)) #False print(bool(None)) #False print(bo 阅读全文
posted @ 2021-11-21 22:19 从精通到陌生 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 1.print print('helloworld') print("helloworld") print(5) print(1+3) #将数据输出到文件中,注意点:1.所指定的盘符存在,2.使用file= 接收 fp=open('D:/text.txt','a+') print('hellowor 阅读全文
posted @ 2021-11-21 10:48 从精通到陌生 阅读(41) 评论(0) 推荐(0) 编辑