假设我必须在"互联网"一词中找到字母'e'的每个索引:
letter = 'e' word = 'internet' idx = word.index(letter)
但是这段代码只给出了第一个索引.我怎样才能找到其余的?
python
python ×1