<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>Hello Mat - 文件操作</title>
    <link>http://halcom.cn/forum.php?mod=forumdisplay&amp;fid=157</link>
    <description>Latest 20 threads of 文件操作</description>
    <copyright>Copyright(C) Hello Mat</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Wed, 20 May 2026 20:20:05 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://halcom.cn/static/image/common/logo_88_31.gif</url>
      <title>Hello Mat</title>
      <link>http://halcom.cn/</link>
    </image>
    <item>
      <title>bat快速获取文件夹里面的全部文件名</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=55682</link>
      <description><![CDATA[bat快速获取文件夹里面的全部文件名

输入：
dir/b &gt; 1.txt


如果需要带路径：
dir/s/b &gt; 1.txt]]></description>
      <category>文件操作</category>
      <author>Halcom</author>
      <pubDate>Tue, 07 Jun 2022 08:58:42 +0000</pubDate>
    </item>
    <item>
      <title>Python抓取股票数据</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=55594</link>
      <description><![CDATA[Python抓取股票数据


参考：【1】如何用 python 获取实时的股票数据？]]></description>
      <category>文件操作</category>
      <author>Halcom</author>
      <pubDate>Wed, 22 Dec 2021 12:41:33 +0000</pubDate>
    </item>
    <item>
      <title>py文件调试（离线包下环境）</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=55528</link>
      <description><![CDATA[py文件调试（离线包下环境）：
（1）启动CMD
（2）输入路径盘符，例如D：
（3）指定到D盘所在路径。
（4）输入python.exe xx.py，即可运行查看xx.py缺失哪些信息]]></description>
      <category>文件操作</category>
      <author>Halcom</author>
      <pubDate>Sun, 18 Jul 2021 02:00:33 +0000</pubDate>
    </item>
    <item>
      <title>生成验证码</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=55403</link>
      <description><![CDATA[验证码：]]></description>
      <category>文件操作</category>
      <author>Halcom</author>
      <pubDate>Sat, 22 May 2021 10:16:49 +0000</pubDate>
    </item>
    <item>
      <title>配置文件字典操作</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=55382</link>
      <description><![CDATA[pip install addict]]></description>
      <category>文件操作</category>
      <author>Halcom</author>
      <pubDate>Mon, 10 May 2021 14:39:11 +0000</pubDate>
    </item>
    <item>
      <title>python抓取大乐透历史数据</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=53725</link>
      <description><![CDATA[python抓取大乐透历史数据代码：

结果：

参考：
【1】https://www.lottery.gov.cn/historykj/history_0.jspx?_ltype=dlt
【2】python爬彩票大乐透历史数据+预测测试...]]></description>
      <category>文件操作</category>
      <author>Halcom</author>
      <pubDate>Sun, 13 Sep 2020 15:05:06 +0000</pubDate>
    </item>
    <item>
      <title>python抓取双色球历史数据</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=53724</link>
      <description><![CDATA[代码：节取2020年的数据如下：倒叙排列，还需要优化。
小小修改一下，即可：

参考：
【1】python3抓取-双色球开奖的所有历史数据-2003年始]]></description>
      <category>文件操作</category>
      <author>Halcom</author>
      <pubDate>Sun, 13 Sep 2020 14:27:27 +0000</pubDate>
    </item>
    <item>
      <title>python创建文件夹和TXT文件，删除TXT文件和删除文件夹</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=52474</link>
      <description><![CDATA[python创建文件夹和TXT文件，删除TXT文件和删除文件夹:

参考：
【1】https://blog.csdn.net/u011047145/article/details/88552383
【2】Python简单删除目录下文件以及文件夹]]></description>
      <category>文件操作</category>
      <author>GTX_AI</author>
      <pubDate>Sat, 11 Jul 2020 04:28:40 +0000</pubDate>
    </item>
    <item>
      <title>打开多个spyder窗口</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=52402</link>
      <description><![CDATA[打开多个spyder窗口：
打开：Anaconda Prompt终端
输入：spyder --new-instance或spyder --new instance
就可以打开另外一个窗口了。]]></description>
      <category>文件操作</category>
      <author>GTX_AI</author>
      <pubDate>Wed, 13 May 2020 14:38:11 +0000</pubDate>
    </item>
    <item>
      <title>Python读取xml文件</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=52399</link>
      <description><![CDATA[Python读取xml文件
环境：Anaconda3-2018.12-Windows-x86_64.exe + win10 + 64bit
输出为：


参考：【1】python3基础：操作xml]]></description>
      <category>文件操作</category>
      <author>GTX_AI</author>
      <pubDate>Sun, 10 May 2020 12:10:12 +0000</pubDate>
    </item>
    <item>
      <title>读取文件夹内图像--方法2</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=48935</link>
      <description><![CDATA[读取文件夹内图像：
供深度学习算法调用：Pytorch_Unet图像分割
txt_file:]]></description>
      <category>文件操作</category>
      <author>GTX_AI</author>
      <pubDate>Fri, 26 Jul 2019 14:04:50 +0000</pubDate>
    </item>
    <item>
      <title>读取文件夹内图像--方法1</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=48934</link>
      <description><![CDATA[读取文件夹内图像：
图像以数字命名：
参考：【训练样本切分小图】
供深度学习算法调用：Pytorch_Unet图像分割]]></description>
      <category>文件操作</category>
      <author>GTX_AI</author>
      <pubDate>Fri, 26 Jul 2019 13:59:36 +0000</pubDate>
    </item>
    <item>
      <title>py_compile(将py文件转换为pyc文件)</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=41321</link>
      <description><![CDATA[py_compile(将py文件转换为pyc文件)：
加密文件
import py_compile
cmd：python -m py_compile main.py

反编译的话：
pip install uncompyle
uncompyle6 unet.cpython-37.pyc

参考：https://www.cnblogs.com/dengyg200891/p/5074481.html








 ...]]></description>
      <category>文件操作</category>
      <author>GTX_AI</author>
      <pubDate>Fri, 17 May 2019 15:01:22 +0000</pubDate>
    </item>
    <item>
      <title>音频.wav处理</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=4803</link>
      <description><![CDATA[需要执行HMM的朋友，请自行安装：python_speech_features，请参考http://python-speech-features.readthedocs.org/en/latest.
使用环境：Win7-32bit-Anaconda2-4.3.1-Windows-x86.exe

参考：https://github.com/PacktPublishing/Python-Machine-Learning-Cookbook
 ...]]></description>
      <category>文件操作</category>
      <author>Halcom</author>
      <pubDate>Mon, 23 Oct 2017 12:45:45 +0000</pubDate>
    </item>
    <item>
      <title>Anaconda+opencv打开摄像头</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=4277</link>
      <description><![CDATA[Anaconda+opencv打开摄像头：
软件环境：win7-32bit-Anaconda4.3.1-opencv2.4.8-python2.7.13（Python 2.7.13 |Anaconda 4.3.1 (32-bit)| (default, Dec 19 2016, 13:36:02) [MSC v.1500 32 bit (Intel)]）
我的笔记本电脑配置一个内置摄像头，默认为VideoCapture(0) ...]]></description>
      <category>文件操作</category>
      <author>Halcom</author>
      <pubDate>Mon, 25 Sep 2017 14:18:29 +0000</pubDate>
    </item>
    <item>
      <title>pkl文件读取</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=3848</link>
      <description><![CDATA[pkl文件读取：环境： win7 32bit - Anaconda3-4.2.0-Windows-x86_64

pickle_data.close()]]></description>
      <category>文件操作</category>
      <author>Halcom</author>
      <pubDate>Sun, 13 Aug 2017 02:07:05 +0000</pubDate>
    </item>
    <item>
      <title>pkl文件写入</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=3847</link>
      <description><![CDATA[pkl文件的写入较简单，具体如下：环境： win7 32bit - Anaconda3-4.2.0-Windows-x86_64]]></description>
      <category>文件操作</category>
      <author>Halcom</author>
      <pubDate>Sun, 13 Aug 2017 02:05:56 +0000</pubDate>
    </item>
    <item>
      <title>读取和写入Excel</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=3451</link>
      <description><![CDATA[环境：win7系统、64bit、CPU、Anaconda3-4.2.0-Windows-x86_64
软件：Anaconda3-4.2.0-Windows-x86_64、VS2013

读取和写入Excel：
xlrd和xlwt，习惯用array来操作

book.save需要写为.xls后缀的Excel。]]></description>
      <category>文件操作</category>
      <author>Halcom</author>
      <pubDate>Wed, 19 Jul 2017 12:52:33 +0000</pubDate>
    </item>
    <item>
      <title>python怎么按顺序读取文件夹中的图片</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=2995</link>
      <description><![CDATA[如题，有好几个文件夹，每个文件夹中有多个图片，怎么一张一张读出来]]></description>
      <category>文件操作</category>
      <author>QQQQ</author>
      <pubDate>Wed, 14 Jun 2017 12:08:59 +0000</pubDate>
    </item>
    <item>
      <title>txt文本文件写入</title>
      <link>http://halcom.cn/forum.php?mod=viewthread&amp;tid=1145</link>
      <description><![CDATA[【1】txt文本文件写入，具体如下：
则在ysw.txt出现一个halcom.cn的字符串。]]></description>
      <category>文件操作</category>
      <author>Halcom</author>
      <pubDate>Wed, 05 Apr 2017 14:53:48 +0000</pubDate>
    </item>
  </channel>
</rss>