笔记
11月23日python笔记(python基础2.6-3.0)
2.6使用for循环遍历文件打开文件:需要借助内置函数open()open(...)open(name[,mode[,buffering]])->fileobjectname:文件名mode打开方式(读写、二进制等)Openafileusingthefile()type,returnsafileobject.Thisisthepreferredwaytoope...[详细]
2020-03-10 19:42 分类:Pythonlinux 安装 python3
linux安装python3软件源下载软件mkdir-p/softcd/softwgethttps://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgzyuminstallsqlite-devel安装tarxfPython-3.6.6.tgzcdPython-3.6.6mkdir-p/usr/local/python3./configure--pre[详细]
2020-03-10 15:39 分类:Pythonlinux相关环境配置
linux相关环境配置环境说明[root@localhostPython-3.6.6]#cat/etc/redhat-releaseRedHatEnterpriseLinuxServerrelease7.4(Maipo)[root@localhostPython-3.6.6]#uname-aLinuxlocalhost.localdomain3.10.0-693.el7.x86_64#1SMPTh[详细]
2020-03-10 15:36 分类:Python数据分析基本模块的使用记录
第一堂课importpandasaspda#importnumpyasnpyimportmatplotlib.pylabaspyldata=pda.read_csv("D:/yali/books.csv")print(data.sort_values(by="comment"))#按指定参数排序print(data.shape)#查看数据统计print(data....[详细]
2020-03-10 10:23 分类:Python