1. python else if 怎么表示 s = ['a', 'b', 'c', 'd']
s[s.index('c')] = 'chinese'
print s
print 'd' * 80
for index, value in enumerate(s):
if 'd' in value:
s[index] = 'Japan'
elif 'b' in value:
s[index] = 'China'
else:
pass
print s
【pythonelse语句怎么写】
文章插图