python学习日记
天南地北飞
这个作者很懒,什么都没留下…
展开
-
tensorflow自学笔记1
自学记录原创 2022-10-15 17:02:42 · 137 阅读 · 0 评论 -
批处理文件中的%f、%i、%0~9
Python学习记录脚本学习%f、%i、%0~9%%加字母的形式一般是在for循环里的.比方说:for /f “tokens=*” %%a in (‘dir/b/s’) do ()%%a 就 表示’ dir/b/s '这段命令返回值的第一行%0~%9表示传递的参数,比方说:call hello.cmd “aa” “bb” “cc”%0 表示批处理本身(一般情况下用不到)%1 表示参数 “aa”%2 表示参数 “bb”%3 表示参数 “cc”...原创 2022-05-10 14:06:44 · 1526 阅读 · 0 评论 -
Python学习记录:matplotlib中hist报错
Python学习记录matplotlib中hist报错AttributeError: ‘Rectangle’ object has no property ‘normed’解决办法:hist()升级后,属性中已经没有mormed了,改为了density原创 2022-02-12 20:00:45 · 858 阅读 · 0 评论 -
Python学习记录:matplotlib中文乱码(windows)
Python学习记录matplotlib中文乱码错误:matplotlib绘图时中文为小方块解决办法:网上找了很多方法,都不好用,最终修改配置文件成功了配置文件路径:Python安装目录下的Lib\site-packages\matplotlib\mpl-data\matplotlibrc文件1.打开文件,删除font.family和font.sans-serif两行前的#,并在font.sans-serif后添加微软雅黑字体(Microsoft YaHei)代码:font.family:原创 2022-02-10 07:33:18 · 430 阅读 · 0 评论 -
Python学习记录:matplotlib报错
Python学习记录matplotlib报错错误信息:cannot import name ‘pyplot’ from partially initialized module ‘matplotlib’解决办法:低级错误,文件名称用的是matplotlib.py,改下名字,不能与模块名字相同。原创 2022-02-08 08:29:52 · 1444 阅读 · 0 评论 -
Python学习记录:shapefile.Writer报错
Python学习记录shapefile.Writer报错w=shapefile.Writer(r.shapeType)使用时报错Exception: The target filepath 5 must be of type str/unicode, not <class ‘int’>.解决办法w=shapefile.Writer(str(r.shapeType))原创 2021-12-22 09:01:51 · 1037 阅读 · 1 评论