字符串(str)是Python 中最常用的数据类型,可以使用单引号或双引号来创建字符串。 ... 首尾空白符号 print(str1.strip("01")) # 去除首尾字符1和0 >>> hello hell10o ...
確定! 回上一頁