最新回答 / 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