python判断list中是否包含某个元素
theList = ['a','b','c'] if 'a' in theList: print 'a in the list' if 'd' not in theList: print 'd is not in the list'
Powered by: 博客园 Copyright © 2024 xxxxxxxx1x2xxxxxxx Powered by .NET 8.0 on Kubernetes