【发布时间】:2017-04-04 15:51:25
【问题描述】:
当我阅读this时
有这个代码
We can also do that this way:
We'd have 500000 beans, 500 jars, and 5 crates.
当我修改为 pep 498
print ("We can also do that this way:")
print (f"We'd have {secret_formula(start_point)} beans, {secret_formula(start_point)} jars, and {secret_formula(start_point)} crates.")
打印出来
We can also do that this way:
We'd have (500000, 500, 5) beans, (500000, 500, 5) jars, and (500000, 500, 5) crates.
【问题讨论】:
标签: python python-3.x f-string