Practical_5.zip
立即下载
资源介绍:
Practical_5.zip
def withoutVowels(strs):
newStrs = ""
j = 0
for str in strs:
for i in "aeiou":
if str == i:
newStrs += " "
j = 1
if j != 1:
newStrs += str
j = 0
newStrs = newStrs.lower()
return newStrs
# 测试用例
print(withoutVowels("No Vowels please"))