最新回答 / qq_旧时光_29
s=('Python was started in 1989 by "Guido".\nPython is free and easy to learn.') print(s)print需要换行
2019-09-07
最赞回答 / 慕婉清3455610
for x in [ 1,2,3,4,5,6,7,8,9 ]: for y in [ 1,2,3,4,5,6,7,8,9 ]: while x<y: print str(x)+str(y) break不打断永远都在死循环
2019-09-05
最赞回答 / 五岁麻瓜少年
首先 s = set([('Adam', 95), ('Lisa', 85), ('Bart', 59)])通过for循环遍历 for x in s: print x[0] + ':', x[1] 第一次遍历得到元组 ('Adam',95)到x中, 元组中x[0]对应Adam,x[1]对应95依次遍历s直到结束
2019-09-05