Python键盘输入
时间:2021-09-21 07:53:36
收藏:0
阅读:25
键盘输入:
(1)a = input("请输入:") # 默认只能输入字符串类型,输入其他类型会报错。
print("您输入的为:%s" % (a))
(2)b = int ( input("请输入:" ) ) # 可调整想要输入的类型。
print("您输入的为:%d" %(b) );
原文:https://www.cnblogs.com/yingsilu/p/15311523.html
评论(0)