输入
Python中接收用户输入的数据
input('提示信息')
- 特点:
- 执行到input,等待用户输入完成后才继续向下执行
- input接收用户输入,一般存储到变量,方便使用
- input会把用户输入的数据都当作字符串处理
password = input('请输入你的密码:')
print(f'你输入的密码是{password}')
Python中接收用户输入的数据
input('提示信息')
password = input('请输入你的密码:')
print(f'你输入的密码是{password}')