python的输入输出语句
输入:
input()
输出:
str()
format
code
str_1 = input("enter a string: ")
str_2 = input("enter another string: ")
print("str_1 is "+str_1+",str_2 is "+str_2)
print("str_1 is {} and str_2 is {}".format(str_1,str_2))
console
enter a string: hello
enter another string: world
str_1 is hello,str_2 is world
str_1 is hello and str_2 is world