获取您自己的 Python 服务器 Result Size: 625 x 664
x
 
#To demonstrate, we insert the number 8 to set the available space for the value to 8 characters.
#Use "<" to left-align the value:
txt = f"We have {49:<8} chickens."
print(txt)
我们有 49      只鸡。