- 博客(3)
- 收藏
- 关注
转载 python pip anaconda conda 切换国内源(清华镜像)
anaconda配置镜像 Mac and Linux conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --set show_channel_urls yes Windows windows下,直接在user目录中创...
2018-01-10 11:54:00 568
转载 Python 模块
模块与import语句 任何Python源文件都能以模块的形式使用。例如:如下代码 # spam.py a = 37 def foo(): print " I`m foo and is %s" %a def bar(): print "I`m bar and I`m calling foo" foo() c...
2015-10-23 14:40:00 107
转载 Python os 获取目录地址
获取当前工作目录路径方法: os.path.abspath('.') os.path.dirname(__file__) os.getcwd() 获取地址后,返回上级目录: os.pardir //返回上级目录os.path.abspath(path) //获取绝对路径os.path.join(path,path) //路径连接 os.path.abs...
2015-10-20 11:54:00 259
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人