#!/usr/bin/python #coding=utf-8 i=1.0 j=3 print(i*j) print(i+j) print(i**j)
备注:无论是哪种运算,只要有操作数是浮点数,python默认得到的都是浮点数,结果也总是浮点数