您可以使用len() 獲取給定字串、陣列、清單、元組、字典等的長度。 您可以使用len 函式來最佳化 ... print("The length of the list is", len(list1)).
確定! 回上一頁