字符串的格式化主要有三种方式,分别是使用%格式化,format方法格式化,fstring格式化。 1. %操作符. str_format = "I'm %s. I'm %d years old" string = ...
確定! 回上一頁