麻烦大神看下,这个为什么错的,新人不懂
麻烦大神看下,这个为什么错的,新人不懂
d = set(['Jan','Fed','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'])
str = input ("请输入月份:")
for i in d:
if d[i] in str:
print 'ok'
else:
print 'error'
麻烦大神看下,这个为什么错的,新人不懂
d = set(['Jan','Fed','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'])
str = input ("请输入月份:")
for i in d:
if d[i] in str:
print 'ok'
else:
print 'error'
2016-11-17
举报