<br />
<b>Warning</b>:  Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\class\discuz\discuz_database.php</b> on line <b>86</b><br />
<br />
<b>Warning</b>:  Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\class\discuz\discuz_database.php</b> on line <b>86</b><br />
<br />
<b>Warning</b>:  Use of undefined constant setting - assumed 'setting' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>76</b><br />
<br />
<b>Warning</b>:  Use of undefined constant bbname - assumed 'bbname' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>76</b><br />
<br />
<b>Warning</b>:  Use of undefined constant siteurl - assumed 'siteurl' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>77</b><br />
<br />
<b>Warning</b>:  Use of undefined constant setting - assumed 'setting' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>:  Use of undefined constant bbname - assumed 'bbname' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>:  Use of undefined constant siteurl - assumed 'siteurl' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>85</b><br />
<br />
<b>Warning</b>:  Use of undefined constant setting - assumed 'setting' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>86</b><br />
<br />
<b>Warning</b>:  Use of undefined constant bbname - assumed 'bbname' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>86</b><br />
<br />
<b>Warning</b>:  Use of undefined constant siteurl - assumed 'siteurl' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>87</b><br />
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>依星源码资源网,依星资源网 - Python教程</title>
    <link>http://www.net188.com/forum-65-1.html</link>
    <description>Latest 20 threads of Python教程</description>
    <copyright>Copyright(C) 依星源码资源网,依星资源网</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sun, 05 Apr 2026 16:08:30 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://www.net188.com/static/image/common/logo_88_31.gif</url>
      <title>依星源码资源网,依星资源网</title>
      <link>http://www.net188.com/</link>
    </image>
    <item>
      <title>读取抖音或996直播间的数据地址和直播路径地址</title>
      <link>http://www.net188.com/thread-22150-1-1.html</link>
      <description><![CDATA[要读取抖音或996直播间的数据地址和直播路径地址，通常需要通过它们的API接口或网页爬取。以下是几种可能的实现方式：

1. 使用官方API（如果有权限）
2. 通过网页爬取直播页面
3. 使用移动端抓包分析

这里提供一个基于网页爬取的Python示例方案：

```python:/d:/proj ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Wed, 30 Jul 2025 08:49:41 +0000</pubDate>
    </item>
    <item>
      <title>python破解wifi密码</title>
      <link>http://www.net188.com/thread-17909-1-1.html</link>
      <description><![CDATA[python破解wifi密码]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Sat, 26 Apr 2025 22:30:04 +0000</pubDate>
    </item>
    <item>
      <title>python如何在文件夹上开启web服务</title>
      <link>http://www.net188.com/thread-16873-1-1.html</link>
      <description><![CDATA[python如何在文件夹上开启web服务
在Python中，你可以使用多种方式来开启一个简单的Web服务，最常见的方法之一是使用内置的http.server模块。这个模块提供了一个非常简单的HTTP服务器，它可以用于开发和测试目的。下面是如何在Python中使用http.server模块在一个文件夹 ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Wed, 02 Apr 2025 09:35:57 +0000</pubDate>
    </item>
    <item>
      <title>Python如何开启web服务</title>
      <link>http://www.net188.com/thread-16872-1-1.html</link>
      <description><![CDATA[Python开启Web服务有多种方式，包括使用内置的HTTP服务器、Flask框架、Django框架等。最简单的方法是使用Python自带的http.server模块、Flask框架提供了简洁易用的接口、Django则适合构建复杂的Web应用。下面将详细介绍如何使用这些工具来开启Web服务，并分析它们各自的 ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Wed, 02 Apr 2025 09:33:59 +0000</pubDate>
    </item>
    <item>
      <title>两天搞定AI毕业设计,标注自己的数据集，训练、评估、测试、部署自己的人工智能算法</title>
      <link>http://www.net188.com/thread-16682-1-1.html</link>
      <description><![CDATA[两天搞定AI毕业设计,标注自己的数据集，训练、评估、测试、部署自己的人工智能算法
代码测试云GPU环境：GPU RTX 3060、CUDA v11.2
图像分类
构建自己的图像分类数据集
收集图像、下载样例数据集，删除系统多余文件，划分训练集、测试集，统计图像尺寸、比例分布、拍照地 ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Sun, 30 Mar 2025 03:39:06 +0000</pubDate>
    </item>
    <item>
      <title>.htaccess运用之禁止某个IP访问网站</title>
      <link>http://www.net188.com/thread-16395-1-1.html</link>
      <description><![CDATA[.htaccess运用之禁止某个IP访问网站


大多数的站长们出于成本考虑，对于很多的小型网站不会单独购买服务器，而是使用虚拟主机。如果网站被别人恶意采集或CC攻击时，如果有服务器权限可以禁止 某个IP 段访问网站，有些虚拟主机也会提供IP黑名单的功能。如果虚拟主机不支 ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Sat, 22 Mar 2025 15:05:54 +0000</pubDate>
    </item>
    <item>
      <title>python获取硬件信息生成机器码授权</title>
      <link>http://www.net188.com/thread-15908-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Thu, 13 Mar 2025 07:40:14 +0000</pubDate>
    </item>
    <item>
      <title>python中字符串转为数字</title>
      <link>http://www.net188.com/thread-15825-1-1.html</link>
      <description><![CDATA[python中字符串转为数字
在 Python 里，把字符串转换成数字可以使用不同的内置函数，这主要取决于字符串所代表的数字类型（整数或者浮点数）。下面是详细介绍：

### 1. 字符串转整数
若字符串代表的是整数，可使用 `int()` 函数。示例如下：
```python
# 定义一个代表 ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Wed, 12 Mar 2025 01:19:42 +0000</pubDate>
    </item>
    <item>
      <title>python中数字转为字符串</title>
      <link>http://www.net188.com/thread-15824-1-1.html</link>
      <description><![CDATA[python中数字转为字符串
在 Python 里，有多种方式能把数字转换为字符串，下面为你详细介绍：

### 1. 使用 `str()` 函数
`str()` 函数是最常用的方法，它可以把任意类型的数字（包括整数、浮点数、复数等）转换为字符串。
```python
# 整数转换
num_int = 123
str_int  ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Wed, 12 Mar 2025 01:19:26 +0000</pubDate>
    </item>
    <item>
      <title>使用deepseek训练数据时，提示：Some parameters are on the meta device because they were offloaded to the cpu.</title>
      <link>http://www.net188.com/thread-15750-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Sun, 09 Mar 2025 08:18:10 +0000</pubDate>
    </item>
    <item>
      <title>AutoModelForCausalLM与AutoModelForSequenceClassification的区别，分别给出示例</title>
      <link>http://www.net188.com/thread-15524-1-1.html</link>
      <description><![CDATA[AutoModelForCausalLM与AutoModelForSequenceClassification的区别，分别给出示例
`AutoModelForCausalLM` 和 `AutoModelForSequenceClassification` 是 Hugging Face Transformers 库中针对不同任务设计的模型类，主要区别如下：

---

### **1. AutoModelForCausalLM* ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Thu, 06 Mar 2025 08:27:33 +0000</pubDate>
    </item>
    <item>
      <title>“Fatal error in launcher: Unable to create process”解决办法</title>
      <link>http://www.net188.com/thread-15400-1-1.html</link>
      <description><![CDATA[“Fatal error in launcher: Unable to create process”解决办法
问题：
python安装完后提示Fatal error in launcher: Unable to create process

解决方案：
步骤1：到python\\scripts\\目录，将原来的pip.exe文件删掉
步骤2：cmd窗口执行：python -m pip install -U pi ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Mon, 03 Mar 2025 09:32:53 +0000</pubDate>
    </item>
    <item>
      <title>Python3.9 GPU训练私有数据（JSON格式数据）访问指南</title>
      <link>http://www.net188.com/thread-15112-1-1.html</link>
      <description><![CDATA[Python3.9 GPU训练私有数据（JSON格式数据）访问指南
如果你的数据是以JSON格式存储的，并且你想使用这些数据来训练模型，你需要先将JSON数据解析并转换为模型可以处理的格式（例如张量）。以下是一个使用JSON格式数据训练模型的示例。

### 1. 安装必要的库
确保你已经 ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Sun, 23 Feb 2025 01:06:38 +0000</pubDate>
    </item>
    <item>
      <title>在Python 3.9中使用GPU训练私有数据，并访问这些数据</title>
      <link>http://www.net188.com/thread-15111-1-1.html</link>
      <description><![CDATA[在Python 3.9中使用GPU训练私有数据，并访问这些数据
要在Python 3.9中使用GPU训练私有数据，并访问这些数据，通常涉及以下几个步骤：

1. **安装必要的库**：你需要安装一些深度学习框架，如TensorFlow或PyTorch，这些框架支持GPU加速。此外，你还需要安装CUDA和cuDNN ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Sun, 23 Feb 2025 01:05:52 +0000</pubDate>
    </item>
    <item>
      <title>torch1.13对应peft版本号</title>
      <link>http://www.net188.com/thread-15052-1-1.html</link>
      <description><![CDATA[torch1.13对应peft版本号
torch1.13对应的PEFT版本号是0.1.0‌。PEFT（Parameter Efficient Fine-Tuning）是一种减少模型参数更新的技术，通常用于在资源受限的环境中进行模型微调。torch1.13版本支持PEFT，并且PEFT库的版本号为0.1.0‌。
为了确保PEFT与torch1.13的兼 ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Fri, 21 Feb 2025 09:23:07 +0000</pubDate>
    </item>
    <item>
      <title>Pytorch 与 numpy、torchvision、torchaudio 和 torchtext 各个版本的兼容性列表</title>
      <link>http://www.net188.com/thread-15051-1-1.html</link>
      <description><![CDATA[Pytorch 与 numpy、torchvision、torchaudio 和 torchtext 各个版本的兼容性列表
pytorch与numpy之间的对应版本
通常情况下，新版本的 PyTorch 会支持稍早期的 NumPy 版本，但为了确保兼容性，最好使用官方文档推荐的版本组合。如果你正在使用特定版本的 PyTorch，建议 ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Fri, 21 Feb 2025 06:36:22 +0000</pubDate>
    </item>
    <item>
      <title>VS Code报错 No module named ‘torch‘ （但已经安装了pytorch）</title>
      <link>http://www.net188.com/thread-14992-1-1.html</link>
      <description><![CDATA[VS Code报错 No module named ‘torch‘ （但已经安装了pytorch）

一、复现错误程序
创建一个python文件 test.py，其内容为：


使用VS Code打开并运行该程序时，会出现以下错误：
ModuleNotFoundError: No module named ‘torch’


二、解决方案
首先，点击VS Code最 ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Thu, 20 Feb 2025 09:03:49 +0000</pubDate>
    </item>
    <item>
      <title>python使用 pip 命令时提示“WARNING: Ignoring invalid distribution -ip”的解决方案</title>
      <link>http://www.net188.com/thread-14991-1-1.html</link>
      <description><![CDATA[python使用 pip 命令时提示“WARNING: Ignoring invalid distribution -ip”的解决方案
[*]问题：
python使用 pip 命令时提示“WARNING: Ignoring invalid distribution -ip”，如图所示：

[*]可能原因：
可能是之前下载的第三方库没有成功或者中途退出。
[*]解决方案 ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Thu, 20 Feb 2025 08:49:41 +0000</pubDate>
    </item>
    <item>
      <title>pip如何安装whl文件</title>
      <link>http://www.net188.com/thread-14990-1-1.html</link>
      <description><![CDATA[pip如何安装whl文件
pip安装whl文件的方法如下：1.首先需要找到与你的Python版本和操作系统相对应的whl文件。2.将下载的whl文件移动到Python的Scripts目录下，比如在Windows上，一般是“CythonXXScripts”，其中XX代表你的Python版本号。3.打开命令行界面，以管理员身 ...]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Thu, 20 Feb 2025 08:22:24 +0000</pubDate>
    </item>
    <item>
      <title>pip设置镜像源</title>
      <link>http://www.net188.com/thread-14972-1-1.html</link>
      <description><![CDATA[pip设置镜像源]]></description>
      <category>Python教程</category>
      <author>源码资源网</author>
      <pubDate>Thu, 20 Feb 2025 01:12:29 +0000</pubDate>
    </item>
  </channel>
</rss>