python中,用/相除,结果会得到一个“精确”的浮点数。
用//相除,是整除的效果,结果会得到一个整数(不一定是整型 )
>>> 6/2
3.0
>>> 6//2
3
>>> 5//0.3
16.0
>>> 0.6//3
0.0
>>> 33.3//3
11.0
>>> 33.3//11
3.0
一个python自带的ide工具,有简单的调试功能 ,虽然功能比较单一,但好处是原生自带的,不用另行安装。
目前发现的优点:

python中用r前缀来表示一个字符串是原始字符(所见即所得)
>>> print('hello \n world')
hello
world
>>> print(r'hello \n world')
hello \n world
注意,r前缀与三个引号的作用是不一致的,三个引号的作用只是用来表示多行数据,但里面的转义符还是有效的:
>>> print(r'''dfsdfsdlfj
sdfasfsfds\ndfa''')
dfsdfsdlfj
sdfasfsfds\ndfa
>>> print('''dfsdfsdlfj
sdfasfsfds\ndfa''')
dfsdfsdlfj
sdfasfsfds
dfa