键盘输入:(1)a = input("请输入:") # 默认只能输入字符串类型,输入其他类型会报错。 print("您输入的为:%s" % (a))
(2)b = int ( input("请输入:" ) ) # 可调整想要输入的类型。 print("您输入的为:%d" %(b) );
Python键盘输入
原文:https://www.cnblogs.com/yingsilu/p/15311523.html