摘要: 1、python的输入、输出 输入:s = input("请输入:")) #input接收到的是str类型 输出:print('hello world') 2、python中的单引号、双引号和三引号(三个单引号)python中定义变量的时候字符串都是用引号括起来,单引号和双引号没有区别,用哪个都行, 阅读全文
posted @ 2019-09-13 20:40 哈哈一笑~~~ 阅读(627) 评论(0) 推荐(0) 编辑
摘要: python中的数据类型:整型、布尔型、浮点型、字符串、列表、元组、字典、集合等 一、布尔类型:true false if true: print('true') if false: print('false')# 非0即真,非空即真 while 0: print('你好') a='' while 阅读全文
posted @ 2019-09-13 16:11 哈哈一笑~~~ 阅读(217) 评论(0) 推荐(0) 编辑