标签:int 分享 print nbsp items python item 图片 info
student = [‘Jack‘, ‘Tom‘, ‘John‘] for i in student: print(i)
favorit_places= {‘小明‘:{‘海水浴场‘, ‘八大关‘, ‘五四广场‘}, ‘小红‘:{‘海洋大学‘, ‘海底世界‘, ‘崂山‘}, ‘小白‘:{‘中山公园‘, ‘八大关‘, ‘五四广场‘}, } for k,v in favorit_places.items(): print(k+‘:‘) if(len(v)>0): for place in v: print(‘\t‘,place)
#九九乘法表 for i in range(1, 10): for j in range(1, i+1): print(‘%d*%d=%d‘ % (j, i, (j*i)), end=‘\t‘) print()
标签:int 分享 print nbsp items python item 图片 info
原文地址:https://www.cnblogs.com/xyg-zyx/p/9792019.html