-1
def anti_vowel(text):
result = ""
for i in text:
while i not in "aeiouAEIOU":
result += i
return result
print anti_vowel("Hello")
此代碼刪除字符串中的元音 ide只是返回一個空字符串或者保持運行而不打印任何內容。爲什麼這不起作用?無論我使用哪種IDE,這都會失敗
使用'如果我不在'vs'而我不在' – Derlin