format 格式化字串. 字串取代. text = "Hello {name}, this {price:.2f} dollars is for you!" print(text.format(name='KJ', price = 49)) # Hello KJ, ...
確定! 回上一頁