>>> a=100*1234
>>> a
123400
>>> a/10000
12
34跑哪去了?
>>> print '%0.2f'%(a/10000)
12.00
结尾加'.0'就OK了
>>> 1234.0/10000
0.1234
>>> 123400.0/10000
12.34
>>> a=100*1234
>>> a
123400
>>> a/10000
12
34跑哪去了?
>>> print '%0.2f'%(a/10000)
12.00
结尾加'.0'就OK了
>>> 1234.0/10000
0.1234
>>> 123400.0/10000
12.34