摘要: Python的数据类型: 1、字符串 2、布尔类型 3、整数 4、浮点数 5、数字 6、列表 7、元组 8、字典 9、日期 1.字符串 str = "char" --> 这是一组字符串 print(str) --> 屏幕输出字符串 也可以用单引号: str = 'char' print(str) - 阅读全文
posted @ 2018-12-03 00:37 xweiqing 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 1.print --> 打印到屏幕输出字符串 print("this is a dog!") -->代码 D:\Python\venv\Scripts\python.exe D:/Python/基础/print&input.py this is a dog! -->输出 print(18) prin 阅读全文
posted @ 2018-12-03 00:36 xweiqing 阅读(291) 评论(0) 推荐(0) 编辑