换行字符串
how_many_snakes = 1
snake_string = """
Welcome to Python3!
____
/ . .\\
\ ---<
\ /
__________/ /
-=:___________/
<3, Juno
"""
print(snake_string * how_many_snakes)
format的格式化
a = .5
print(a)
print("a={}".format(a))
print("a={:2%}".format(a))
format与dict
dict = {'name': 'juno', 'color': 'blue', 'age': 'unknown'}
print(dict)
print("name={name}, color={color}, age={age}".format(**dict))