
python初级笔记
Kali_128
奋斗
展开
-
from __future__ import division
在python2 中实现向python3兼容的division(精确除法) Python 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. #导入前 >&...原创 2018-11-26 17:55:41 · 165 阅读 · 0 评论 -
python3符号优先级
由此可见,python3中幂指数计算的优先级要高于单目运算符高,不确定的时候需要括号保险点! Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >...原创 2018-11-26 18:01:54 · 325 阅读 · 0 评论