文字與整數 msg = '%s is %d years old.' % ("James", 5) print(msg) James is 5 years old. 除了類似C 語言 printf 的用法之外,亦可使用新的 format ...
確定! 回上一頁