运行 ❯
拥有你自己的 Python 服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
#To demonstrate, we insert the number 8 to set the available space for the value to 8 characters. #Use "^" to center-align the value: txt = "We have {:^8} chickens." print(txt.format(49))
我们有 49 只鸡。