Python 请问为什么上面的方式是对的 下面的就不对?为什么不能并排呀?

a=0
sum=0
while a≤5:
sum+=a。。。


a=0 sum=0
while a≤5:
sum+=a。。。

一行一条语句是个良好的习惯;如果多行,用分号隔开。