具有此代碼
We can also do that this way:
We'd have 500000 beans, 500 jars, and 5 crates.
,當我修改爲打氣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 3的任何書籍給我嗎? – kunjun
http://sopython.com/wiki/What_tutorial_should_I_read%3F – MooingRawr
如何打印這個代碼與F-字符串? ('{0:_^11}'。格式('hello')) ''' – kunjun