习题7 更多打印

学习目标:

ex7.py

认识format


学习内容:

 

​
hilarious = False
joke_evaluation = "Isn't that joke so funny?! {}"
#format引用变量
print(joke_evaluation.format(hilarious))

​
print("Its fleece was white as {}.".format('snow'))

学习时间:

2023.3.12


学习产出:

ex7.py

你可能感兴趣的:(python)