str基本操作. 如何產生一段字串. 字串相接-使用 + 或 *. s1 = "pui" print(s1 + "~") # 字串加法為前後相接print(s1 * 3) # 字串乘法為重複n次. 輸出: pui~ puipuipui ...
確定! 回上一頁