---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-24-478f6ef4f70f> in <module>()
----> 1 1+j
NameError: name 'j' is not defined
(-2.33-5.7j).real #复数的实部
-2.33
(-2.33-5.7j).imag #复数的虚部
-5.7
Python基本数据类型–字符串
'I love Python!'#使用单引号的字符串
'I love Python!'
"You love Python"#使用双引号的字符串
'You love Python'
'I love Python!"
File "<ipython-input-29-d3e8771b6fff>", line 1
'I love Python!"
^
SyntaxError: EOL while scanning string literal