str0 = "123" str1 = "456%s" # 字符串中的%s不会被解释为格式化字符串 # 含有%s的格式化字符串只能有一个,且位于最后 print(str0,str1,"%s%s" %("end", "!")) print(str0 ...
確定! 回上一頁