要使用格式化字串文本(formatted string literals),需在字串開始前的引號或連續三個 ... import math >>> print(f'The value of pi is approximately {math.pi:.3f}.
確定! 回上一頁