问: 让用户输入值,值中的a用*代替
x = str(input("请输入你的值:")) if "a" not in x: print(x) else: print(x.replace('a','*'))