print("Hello, World!"); players = ['tt','tr','qw'] for player in players[:2]: ?? ?print(player.title()) for player in players[2:]: ?? ?print(player.title()) foods = ("hh","rr","qq") for i in range(3): ?? ?print("该餐馆的五官食品{}".format(foods[i]))
# foods[1] = "water" for i in range(3): ?? ?print("该餐馆的五官食品{}".format(foods[i])) foods = ("rt","uu") for i in range(2): ?? ?print("该餐馆的五官食品{}".format(foods[i]),end="") age = 12 if age>12: ?? ?price = 0 elif age<12: ?? ?price = 1; else: ?? ?price = 2; print(price)
languagues ={ ?? ?'jen':'python', ?? ?'phi':'java' } for key,value in languagues.items(): ?? ?print("\nKey:"+ key) ?? ?print("?? ?Value:"+value) print(languagues['jen'].title())
|