立即学习:https://edu.csdn.net/course/play/26676/338774?utm_source=blogtoedu
>>> ord('a')
97
>>> bin(97)
'0b1100001'
>>> import sys
>>> sys.getdefaultencoding()
'utf-8'
>>> a = 'python'
>>> type(a)
<class 'str'>
>>> b = "python"
>>> type(b)
<class 'str'>
>>> type('250')
<class 'str'>
>>> int('250')
250
>>> str(250)
'250'
>>> 'what's your name'
File "<stdin>", line 1
'what's your name'
^
SyntaxError: invalid syntax
>>> "what's your name"
"what's your name"
>>> 'what\'s your name'
"what's your name"
>>> #转义符号
>>> #序列
>>> m = "python"
>>> n = "book"
>>> #所有的序列都可以连接
>>> m + n
'pythonbook'
>>> m
'python'
>>> n
'book'