print(x1.replace(old,new)): 傳回字串x1的old字串取代為new的字串 ... print(var1.count('Python')) #var1字串出現'Python'的次數.
確定! 回上一頁