摘要: 一.创建一个集合 代码段 aset = {1,2,3,4,5,6} # 创建一个集合 print(type(aset)) print("使用关键字set定义集合",type(set())) 输出结果 <class 'set'> 使用关键字set定义集合 <class 'set'> 二.差集、交集、并 阅读全文
posted @ 2020-02-23 11:02 Cheney!努力才会幸运 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 一.if 判断 代码段 user = 'joy' password = '123456' # 输入用户名和密码 user_account = input('please input user:') user_password = input('please input password:')# 判断 阅读全文
posted @ 2020-02-23 10:55 Cheney!努力才会幸运 阅读(239) 评论(0) 推荐(0) 编辑