>>> 3+0.5
|
>>>9**0.5
|
>>>123%10
|
>>> 10/2
|
>>>55//3
|
>>>(65-23)*2/3
|
>>>n=987 >>> format(n,'.1f')
|
>>> n=987 >>> float(n)
|
>>> n=1254.9 >>> int(n)
|
>>>print( format(n,'.1f'))
|
>>> n=“987” >>> float(n)
|
>>> n=“1254.9” >>> int(n)
|