2-1 >>> 2 + 2 4 >>> 50 - 5*6 20 >>> (50 - 5*6) / 4 5.0 >>> 8 / 5 1.6 2-2 >>> 17 / 3 5.666666666666667 >>> >>> 17 // 3 5 >>> 17 % 3 2 >>> 5 * 3 + 2 17 2-3 >>> 5 ** 2 25 >>> 2 ** 7 128 3-1 somewhat easier to calculations, >>> tax = 12.5 / 100 >>> price = 100.50 >>> price *12.5625 >>> price +113.0625 >>> round(_, 2113.06-- variable with its magic behavior.
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did127293