专业室内设计 网站,什么是网站框架结构,免费网络连接软件,简洁好看的网站获取键盘输入
input语句
使用input()可以从键盘获取输入#xff0c;使用一个变量来接收
print(你是谁#xff1f;)
name input()
print(f我知道了#xff0c;你是{name})# print(你是谁#xff1f;)
name input(你是谁使用一个变量来接收
print(你是谁)
name input()
print(f我知道了你是{name})# print(你是谁)
name input(你是谁)
print(f我知道了你是{name})input语句里也可以提示语句
num input(请输入数字)
print(f数据类型是{type(name)})# str
获取的永远都是字符串类型的