pythontab = ['p','y','t','h','o','n','t','a','b'] if 't' in pythontab: print 't in pythontab' if 'w' not in pythontab: print 'w is not in pythontab'
in 和 not in 是非常常用的关键字。
Copyright © 2019- igat.cn 版权所有 赣ICP备2024042791号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务