摘要: in not in 主要用来检测一些字符串是否存在,或者避免一些字符串 1 while True: 2 comment = input('请输入你的评论') 3 if '顾清秋' in comment: 4 print('你输入的信息由敏感词汇,请重新输入') 5 else: 6 print('评论 阅读全文
posted @ 2018-03-19 16:39 Qingqiu_Gu 阅读(175) 评论(0) 推荐(0) 编辑