W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_string_placeholder_4.py:
#To demonstrate, we insert the number 8 to specify the available space for the value. #Use "=" to place the plus/minus sign at the left most position: txt = "The temperature is {:=8} degrees celsius." print(txt.format(-5))