... 刪除字串中的空格>>>print(sch_name. replace(' ','')) NationalTaiwanUniversity ... 2-2 字串物件的方法(續)方法功能傳回物件範例 str.endswith('目標字串')檢查.
確定! 回上一頁