input()是一种获取用户输入的方法,从标准输入中读入一个字符串,并自动忽略换行符\n。 换行符\n >>> print(\'a\nb\')ab >>> user_money = input("please input your money:") please input your money:1 # 1 是我自己输入的 >>> print(user_money) 1 相关文章: 2021-06-09 2021-05-18 2021-06-22 2022-12-23 2022-12-23 2022-12-23