我想从所输入的任何字符串中删除所有元音.我正在尝试使代码尽可能简单.
感谢您的帮助.
def anti_vowel(text): for i in text: i.strip(['i','o','a','u','e']) return i
python string replace
python ×1
replace ×1
string ×1