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)中间(空格)分隔
hello my world
本文来自博客园,作者:slowlydance2me,转载请注明原文链接:https://www.cnblogs.com/slowlydance2me/p/16838744.html

浙公网安备 33010602011771号