#用户输入,操作
print("python 用户输入操作")
# input(提示字符串),函数阻塞程序,并提醒用户输入字符串
instr = input("please input the string: ")
print("input >> " + instr)
# 将输入的字符串转化成整数 int(str)
print("input to int >> {}".format(int(instr)))
Python学习笔记(1):用户输入,终端输入
于 2022-03-07 22:16:41 首次发布