1.常用方法函数print() # 打印type() # 查看数据类型 input("请输入密码") # 设置输入框数据 ==》 字符换类型 2.类型转换int(X) # 转换成整数float(X) # 转换成浮点数 n = input("数量") p = input("价格") print(float(n)*float(p))