Python 笔记 for 《疯狂Python讲义》

[2.3.1] 进制(specialized)

二进制整数:以 0b0B 开头

八进制整数:以 0O0o 开头

[2.3.3] 复数 with cmath imported

复数的虚部用jJ来表示

1
2
3
import cmath
a = 1 + 0.2j #define a complex number
print(a)


Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×