问: 让用户输入值,值中的a用*代替
x = str(input("请输入你的值:")) if "a" not in x: print(x) else: print(x.replace('a','*'))
标签:11,python,练习,else,print,输入 From: https://www.cnblogs.com/ayue6/p/17787114.html
问: 让用户输入值,值中的a用*代替
x = str(input("请输入你的值:")) if "a" not in x: print(x) else: print(x.replace('a','*'))
标签:11,python,练习,else,print,输入 From: https://www.cnblogs.com/ayue6/p/17787114.html