2019年12月5日

python运算符

摘要: 1.in: 表示连续的字符串或单个字符包含 举例 name = '张三四'# name里包含张,结果输出in if '张' in name : print('in') else: print('error') # name里不包含张四,结果输入error if '张四' in name: print 阅读全文

posted @ 2019-12-05 18:20 朱金花 阅读(198) 评论(0) 推荐(0) 编辑

导航