python Copy s = 'python is fun' c = 'n' print(s.find(c)). 輸出: textCopy 5. 請注意,它返回字串中遇到的字元的第一個位置。關於此函式要記住的另 ...
確定! 回上一頁