摘要: 成员运算 in #判断……在……里面 print('a' in 'abcd') # 字符串判断a是否在abcd里面 print('you' in 'how are you') # 这种整体也可以判断 print('1' in ['1', '2', '3', '4', '5']) # 判断某个元素是否 阅读全文
posted @ 2021-06-01 21:15 popopop 阅读(44) 评论(0) 推荐(0)
摘要: 与用户交互 输入: input # python2与python3的区别 # python3 res = input('please in put your username>>>>:') # 将获取到的变量名赋值给变量名res print(res, type(res), id(res)) # id 阅读全文
posted @ 2021-05-31 20:08 popopop 阅读(38) 评论(0) 推荐(0)