“Python/gloss python complex”的版本间差异

来自菜鸟教程
跳转至:导航、​搜索
(Pywikibot 4.4.0.dev0)
 
(机器人:添加分类Python基础教程
 
第40行: 第40行:
 
</div>
 
</div>
 
<br />
 
<br />
 +
 +
[[分类:Python基础教程]]

2020年10月29日 (四) 08:48的最新版本

<languages />

Python复合体

复杂

复数以“ j”表示为虚部:

复杂:

  x = 3+5j
y = 5j
z = -5j

print(type(x))
print(type(y))

  print(type(z))