a = 'world' b = 'oxxo' c = f'hello {a}, I am {b}' print(c) # hello world, I am oxxo. f-string 的格式化字串的定義和.format 類似,可以加入其他數值,來指定最小 ...
確定! 回上一頁