字串格式化 Format用法 name = "John" print("Hi,{:s}".format(name)); #把name變數塞進{:s} #Hi,John age = "10" print("Hi,{:s},i'm {:s} years old ...
確定! 回上一頁