python中int input_两分钟了解python中的input函数

两分钟了解python中的input函数

input函数在python中是一个内建函数,其从标准输入中读入一个字符串,并自动忽略换行符。下面我们就来看看input函数的具体用法吧。

#函数inputmessage = input("Tell me something, and I will repeat it back to you: ")

print(message)

message1 = input()

print(message1)

#创建多行字符串的方式prompt1="type someting"

prompt2=prompt1+": "+input()

print(prompt2)

prompt = "If you tell us who you are, we can personalize the messages you see."

prompt +=

你可能感兴趣的:(python中int,input)