為了從字串中刪除特殊字元,我們必須檢查字元是否是字母數字字元,否則將其刪除。這個方法的實現例子如下。 Python. pythonCopy string = "Hey! What's up ... 處理字串 ...
確定! 回上一頁