<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>小白教程 - Python</title>
    <link>https://www.xiaobai27.com/forum-2-1.html</link>
    <description>Latest 20 threads of Python</description>
    <copyright>Copyright(C) 小白教程</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sat, 26 Sep 2026 00:55:59 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.xiaobai27.com/static/image/common/logo_88_31.gif</url>
      <title>小白教程</title>
      <link>https://www.xiaobai27.com/</link>
    </image>
    <item>
      <title>python3 数组(列表)初始化</title>
      <link>https://www.xiaobai27.com/thread-454-1-1.html</link>
      <description><![CDATA[python3 数组(列表)初始化

1. 初始化一个定长的数组
有时需要预定义一个定长的数组，并给每个元素赋值

方法1： python3中代码如下：
#coding=utf-8
item  = \'PythonTab\'
array =  #把 item 的值赋给 range()迭代器的每个元素
print(array)


结果：

[\'PythonTab\', \'P ...]]></description>
      <category>Python</category>
      <author>向恒波</author>
      <pubDate>Sat, 19 Feb 2022 06:06:15 +0000</pubDate>
    </item>
    <item>
      <title>水水水水水水水水</title>
      <link>https://www.xiaobai27.com/thread-453-1-1.html</link>
      <description><![CDATA[https://www.xiaobai27.com/rjyfk_zurl-url.html]]></description>
      <category>Python</category>
      <author>超级帅哥的妈</author>
      <pubDate>Tue, 25 Jan 2022 01:23:06 +0000</pubDate>
    </item>
    <item>
      <title>前期的准备工作</title>
      <link>https://www.xiaobai27.com/thread-435-1-1.html</link>
      <description><![CDATA[1、找到快捷键设置的位置，试着自己新设置一个快捷键并且使用他。

2、工具类的快捷键是可以重复的，假设两个工具的快捷键都是 P，那么如何在选定好一个工具之后使用快捷键切换到另一个



3、撤销这个动作在我们作图的时候会经常用到，它的快捷键是什么


4、调出历史 ...]]></description>
      <category>Python</category>
      <author>永闯天涯</author>
      <pubDate>Wed, 09 Jun 2021 06:39:39 +0000</pubDate>
    </item>
    <item>
      <title>各位大神求助python matplotlib 时间序列绘图问题</title>
      <link>https://www.xiaobai27.com/thread-221-1-1.html</link>
      <description><![CDATA[现在我想通过Python绘制一个期货交易分时图，因为分时图的特点是昨天的夜间交易数据从晚上21:00到23:00开始，全天的交易时间是不连续的。上午的前半部分是9:00-10:15，上午的后半部分是10:30-11:30，下午的时段是1:30-3:0 ...]]></description>
      <category>Python</category>
      <author>水之悠然</author>
<enclosure url="https://www.xiaobai27.com/data/attachment/forum/202105/26/012058ji1ss4qzsjoqbaak.png" length="89173" type="image/jpeg" />      <pubDate>Mon, 31 May 2021 12:29:03 +0000</pubDate>
    </item>
    <item>
      <title>安装PyTorch后，载入模块提示以下错误，请问怎么解决呀？</title>
      <link>https://www.xiaobai27.com/thread-237-1-1.html</link>
      <description><![CDATA[系统是 Win10、64位、python3.7，分别用 pip 和 conda 安装都是同样的问题]]></description>
      <category>Python</category>
      <author>虹平</author>
      <pubDate>Tue, 25 May 2021 18:58:25 +0000</pubDate>
    </item>
    <item>
      <title>scrapy-redis爬虫跑了一阵子之后从队列中取不到url了</title>
      <link>https://www.xiaobai27.com/thread-232-1-1.html</link>
      <description><![CDATA[我在redis的队列中存储了两千条start_url，但是在进行爬取的时候，每次都是爬了几十条或者百来条，就会进入等待获取start_url的状态

有没有大佬帮忙分析一下，我百度查了好多了，但是没有找到能够解决的办法。
因为它能够 ...]]></description>
      <category>Python</category>
      <author>久韦</author>
<enclosure url="https://www.xiaobai27.com/data/attachment/forum/202105/26/023043s4lslfhaihor4iel.png" length="9341" type="image/jpeg" />      <pubDate>Tue, 25 May 2021 18:30:43 +0000</pubDate>
    </item>
    <item>
      <title>python可视化中遇到的问题，使用ivtk观察管线失败</title>
      <link>https://www.xiaobai27.com/thread-220-1-1.html</link>
      <description><![CDATA[前期调试都通过了，在使用ivtk观察管线时无法运行。
出现下面的错误cannot import name \'PythonShell\'有没有大佬可以帮忙解答一下问题呢？谢谢！]]></description>
      <category>Python</category>
      <author>年年有今日</author>
      <pubDate>Tue, 25 May 2021 17:02:12 +0000</pubDate>
    </item>
    <item>
      <title>查找关于渗透数据获取问题的数据/信息</title>
      <link>https://www.xiaobai27.com/thread-219-1-1.html</link>
      <description><![CDATA[做一些，对我来说棘手，数据处理。我想知道这是否与一些一般问题有关（数学、逻辑、科学、...）。
如果有人可能知道一些有用的搜索词， 甚至潜在的相关论坛主题。]]></description>
      <category>Python</category>
      <author>走钢丝</author>
      <pubDate>Tue, 25 May 2021 10:35:13 +0000</pubDate>
    </item>
    <item>
      <title>Ubuntu核心中的Python脚本</title>
      <link>https://www.xiaobai27.com/thread-215-1-1.html</link>
      <description><![CDATA[大家好，
并非来自编程背景，但我需要测试以下类似内容并需要您的支持
我们有一个在Linux Ubuntu核心上运行的网关，在该网关上我们可以从中收集数据并将其存储在软件支持的云中。
网关与4G LTE（4G sim）USB Dongle连接并连接到云。
如果由于某种原因连接断开而数据记录 ...]]></description>
      <category>Python</category>
      <author>舍予轻尘</author>
      <pubDate>Tue, 25 May 2021 10:08:10 +0000</pubDate>
    </item>
    <item>
      <title>Pycharm误删文件还能找回吗</title>
      <link>https://www.xiaobai27.com/thread-260-1-1.html</link>
      <description><![CDATA[结果为  ‘12’、‘34’
我想要的结果是 12’、‘23’，‘34’
请问各位大神怎么修改结果为  ‘12’、‘34’
我想要的结果是 12’、‘23’，‘34’
请问各位大神怎么修改]]></description>
      <category>Python</category>
      <author>梦随心生</author>
      <pubDate>Sun, 23 May 2021 14:38:27 +0000</pubDate>
    </item>
    <item>
      <title>未能打印第二个文件中未匹配的行</title>
      <link>https://www.xiaobai27.com/thread-209-1-1.html</link>
      <description><![CDATA[出于某种原因，我没有得到Python的迭代。我有两个文件，文件1和文件-2。我必须使用文件-1行在文件-2中查找行。
File-1 lines:

03/28/2021,P,6,LINE2

03/28/2021,P,9,LINE4


File-2 lines:

03/28/2021,P,16,LINE1

03/28/2021,P,6,LINE2

03/28/2021,P,9,LINE3

03/2 ...]]></description>
      <category>Python</category>
      <author>大哈</author>
      <pubDate>Thu, 20 May 2021 20:39:41 +0000</pubDate>
    </item>
    <item>
      <title>如何在2个不同的列表中找到常见元素？</title>
      <link>https://www.xiaobai27.com/thread-208-1-1.html</link>
      <description><![CDATA[我有这个列表：A[（7.5，），（17.5，），（22.5，），（25.0，），（27.5，），（30.0），（37.5，），（40.0，）]B[（17.5 ），（22.5，），（25.0），（27.5），（30.0），（37.5，），（40.0），）]

我想在列表
中找到相同的元素的数量 我尝试了这些方法，但结果始 ...]]></description>
      <category>Python</category>
      <author>瑞子</author>
      <pubDate>Thu, 20 May 2021 20:33:02 +0000</pubDate>
    </item>
    <item>
      <title>作为def（）中的参数的词数可变的方法</title>
      <link>https://www.xiaobai27.com/thread-205-1-1.html</link>
      <description><![CDATA[在当前代码中，我正在执行测试以处理数量可变的字典：我正在寻找一种方法来获取所有密钥及其值。在当前示例中，特别是在DictionnaryTest2功能中，我未能将 Tuple 更改为原始列表，以便获取密钥名称（并且错误即将出现）：我想知道我是否使用了正确的方法（这是第一次） ...]]></description>
      <category>Python</category>
      <author>立于浮华</author>
      <pubDate>Thu, 20 May 2021 20:17:13 +0000</pubDate>
    </item>
    <item>
      <title>尝试将匹配词导入字典，同时返回错误&quot;大写&quot;</title>
      <link>https://www.xiaobai27.com/thread-204-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>Python</category>
      <author>并轨</author>
      <pubDate>Thu, 20 May 2021 20:08:40 +0000</pubDate>
    </item>
    <item>
      <title>subprocess.Popen（）是否导致主例程暂停stdout？</title>
      <link>https://www.xiaobai27.com/thread-198-1-1.html</link>
      <description><![CDATA[这是我想做的事情：
在nix终端仿真器中，运行我的脚本。
调用subprocess.Popen（）来生成许多进程，确保标准输出打印输出不会填满我的屏幕。
生成所有子进程后，我每秒都会对其进行轮询以收集返回码。收集完所有返回码后，我将继续打印摘要，以表明主要过程成功/失败的 ...]]></description>
      <category>Python</category>
      <author>换个新网名</author>
      <pubDate>Thu, 20 May 2021 19:39:48 +0000</pubDate>
    </item>
    <item>
      <title>为什么递归功能消耗的处理时间比循环多？</title>
      <link>https://www.xiaobai27.com/thread-196-1-1.html</link>
      <description><![CDATA[为什么递归功能消耗更多的处理时间比循环？
而且，对于处理器来说，这是否繁琐？
这个例子需要大约1分钟，但循环只有几毫秒]]></description>
      <category>Python</category>
      <author>意乱情迷</author>
      <pubDate>Wed, 19 May 2021 19:38:22 +0000</pubDate>
    </item>
    <item>
      <title>SQL语法错误</title>
      <link>https://www.xiaobai27.com/thread-217-1-1.html</link>
      <description><![CDATA[我想检查是否已经存在用户名。如果是这样，将显示一个消息框，如果不是用户名和字段条目的其余部分将存储在数据库中。但是，当我尝试此功能时，它打印数据库无法连接。]]></description>
      <category>Python</category>
      <author>陈小斌</author>
      <pubDate>Sun, 16 May 2021 13:15:29 +0000</pubDate>
    </item>
    <item>
      <title>python&quot;webdriver&quot; object has no attribute..解决方法</title>
      <link>https://www.xiaobai27.com/thread-281-1-1.html</link>
      <description><![CDATA[为啥会报错呢？请各位大神求教]]></description>
      <category>Python</category>
      <author>大哈</author>
<enclosure url="https://www.xiaobai27.com/data/attachment/forum/202105/27/115045ue4agd7zgnuae6x2.png" length="11387" type="image/jpeg" />      <pubDate>Thu, 29 Apr 2021 13:32:33 +0000</pubDate>
    </item>
    <item>
      <title>29岁了，之前没有编程基础，现在想学习Python做编程晚吗</title>
      <link>https://www.xiaobai27.com/thread-315-1-1.html</link>
      <description><![CDATA[如题，请过来人给个意见，谢谢]]></description>
      <category>Python</category>
      <author>二大王</author>
      <pubDate>Mon, 26 Apr 2021 07:43:20 +0000</pubDate>
    </item>
    <item>
      <title>求助！引入了less文件，为何没效果？</title>
      <link>https://www.xiaobai27.com/thread-316-1-1.html</link>
      <description><![CDATA[如下图，我在里引入了两个less，lesscss中代码没写错，可是页面没反应，这是为什么啊？]]></description>
      <category>Python</category>
      <author>银刺</author>
      <pubDate>Fri, 23 Apr 2021 08:40:04 +0000</pubDate>
    </item>
  </channel>
</rss>