L = ['adam', 'lisa', 'Paul', 'Bart']
L.pop(3)
L.pop(2)
print L
L.pop(3)
L.pop(2)
print L
2018-05-03
print ('''静夜思\n床前明月光, \n疑是地上霜。 \n举头望明月, \n低头思故乡。''')
2018-05-03
s = set([('Adam', 95), ('Lisa', 85), ('Bart', 59)])
for (name,score) in s:
print name,':',score
for (name,score) in s:
print name,':',score
2018-05-03
s = set([('Adam', 95), ('Lisa', 85), ('Bart', 59)])
for (name,score) in s:
print name,':',scores = set([('Adam', 95), ('Lisa', 85), ('Bart', 59)])
for (name,score) in s:
print name,':',score
for (name,score) in s:
print name,':',scores = set([('Adam', 95), ('Lisa', 85), ('Bart', 59)])
for (name,score) in s:
print name,':',score
2018-05-03