Python输出时怎么可以显示a=,b= 求指教(能把代码写出来吗)
a, b = 1.234567, 0.00321 print(f'a={a}, b={b}')
如果是Python3,可以用如下的方式
print(f'a={a:.3f}, b={b:.2e}')