![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
Mr.小马子
never give up!
展开
-
Windows环境下面同时安装python 2.x 和 python 3.x冲突配置解决
首先到python官网分别下载python2.x,python3.x安装包,然后安装Python2且记住python2的安装位置。 安装Python3且记住Python3的安装位置。 然后配置python2和python3的系统变量PATH,例如我的: D:\Python\Python2\ D:\Python\Python2\Scripts\ D:\Python\Python3\ D:\Pyt...原创 2019-02-18 19:16:44 · 462 阅读 · 0 评论 -
Python学习(一)---基础
print('hello Python!') Python基础 #整数,用十进制表示,没有大小限制 1 , 2 , -3 , 0#十六进制,用0x开头后面跟0~9,a~f 0xff , 0xa80f#浮点数,也就是小数,对于很大很小的浮点数,用科学计数发表示,10用e表示,例如0.0002为2e-4,没有大小限制,如果无限大表示为inf 1.5 , 0.3 , -2.8 ,2e5 ,3e-1#...原创 2019-02-20 14:48:28 · 199 阅读 · 0 评论 -
Python学习(二)---函数
import math 函数 内置函数: abs(10) 、abs(-10)、abs(-23.22) #绝对值 max(1,5,-4) #求最大数 min(-10,1,0.5,6) #求最小值 hex(255) #转成十六进制 内置类型转换函数: int('12') str(12.4) floa...原创 2019-02-20 14:48:20 · 277 阅读 · 0 评论