Python中關於while循環的疑問

關於下面的python的題目: 相關鏈接: https://codingbat.com/prob/p186048  左邊的框裏面的答案是正確的,是網上找的答案,現在有個問題: 當i=0時,對於第二個count_code('codexxcode') → 2,我說下我的理解:  第一次循環:   第二條 if len(str[0:]) >= 4 and str[3+0] == "e":  這裏的len
相關文章
相關標籤/搜索