码迷,mamicode.com
首页 > 编程语言 > 详细

python if all

时间:2018-07-01 11:54:05      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:not   for   enc   utf-8   python   python if   print   odi   pytho   

#encoding:utf-8

s=[‘1‘,‘9‘]
sta=‘56789‘
# if all(t not in sta for t in s):
#     print sta
if all(t not in sta for t in s):
    print(sta)

 

python if all

标签:not   for   enc   utf-8   python   python if   print   odi   pytho   

原文地址:https://www.cnblogs.com/ruiy/p/9249353.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!