08 2020 档案

摘要:1.输入 语法:input('提示信息') 注意:input()接收到的数据都是字符串 password = input('请输入密码:') print(f'你的密码是{password}') print(type(password)) 2.转换数据类型 int(x):将数据类型转换为int型 nu 阅读全文
posted @ 2020-08-28 23:47 as_scheduled 阅读(170) 评论(0) 推荐(0)
摘要:1.注释 python的的注释方式有单行注释,有多行注释 单行注释(用#注释): #单行注释 print('hello python!') 多行注释: 1)用6个单引号注释 ''' 多行注释 6个单引号 ''' print('hello word!') 2)用6个双引号注释 """ 多行注释 6个双 阅读全文
posted @ 2020-08-27 23:36 as_scheduled 阅读(134) 评论(0) 推荐(0)