W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_string_placeholder_3.py:
#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))