Write a “censor” function in python

前端 未结 0 2003
甜味超标
甜味超标 2020-12-07 00:12

My professor has this function on his slides:

def censor(str):
    for ch in "aeiouAEIOU"
        str = str.replace(ch, "*")
    return st         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题