回傳有多少個字元數. >>> my_str = "I have a dream." >>> print(len(my_str)) 15; int(str). 將字串轉為數字. >>> my_str = '123' >>> my_int = int(my_str) ...
確定! 回上一頁