进入python3环境
python3
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
print('hello!')
hello!print(5+5)
10
输入多行文字输入3个单引号
>>> print('''
... 第一行文字
... 第二行文字
... 第三行文字
... 第四行文字
... ''')
第一行文字
第二行文字
第三行文字
第四行文字
整型变量int
a=1001
print(a,type(a))
浮点型float
print(1,type(1))
1print(1.1,type(1.1))
1.1
布尔型变量
操作符
位运算符