python 的多行输入

a, b = input().split(" ") # 输入字符串(默认返回类型)a 和 b 以(空格)分隔

a, b, c = eval(input()) #输入三个值(任何类型)中间由逗号分隔
a, b, c = int(input()) #输入三个值(int)中间由逗号分隔
a, b, c = map(eval, input().split(" ")) #输入三个值(任何类型)中间(空格)分隔
a, b, c = map(int, input().split(" ")) #输入三个值(int)中间(空格)分隔

posted @ 2022-10-29 14:59  slowlydance2me  阅读(141)  评论(0编辑  收藏  举报