2022-08-11 学习Python-Day4
本帖最后由 wyh551202 于 2022-8-11 11:03 编辑今日已学习P9、P10、P11{:10_291:}
####wyh2022.08.11####
i=0
while i<1:
i=i+0.1
print(i)
import decimal
a = decimal.Decimal('0.1')
b = decimal.Decimal('0.2')
c = a + b
print(c)
d = 5e-05
print(d)
e = 1+2j
print(e)
f = divmod(-3,2)
print(f)
g = abs(1+2j)
print(g)
h = bool(False)
print(h)
if bool(250)
print("250 is true")
else:
print("250 is false")
页:
[1]