标签:span split image pre 一个 info split() col input
eval内置函数
下面是算法中常见的输入 1 2 3 接受到 a b c 中
a,b,c=input().split() a,b,c=eval(a),eval(b),eval(c) d=b*b-4*a*c print(d)
或者是这样接受
a,b,c=map(int,input().split()) print(b*b-4*a*c)
输出的时候(print, 会自动加一个空格)
标签:span split image pre 一个 info split() col input
原文地址:https://www.cnblogs.com/lucky-light/p/13023697.html