<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>笨鸟编程-零基础入门Pyhton教程 - Python问题求助</title>
    <link>https://www.benniao365.com/forum-57-1.html</link>
    <description>Latest 20 threads of Python问题求助</description>
    <copyright>Copyright(C) 笨鸟编程-零基础入门Pyhton教程</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Tue, 16 Jun 2026 11:28:31 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.benniao365.com/static/image/common/logo_88_31.gif</url>
      <title>笨鸟编程-零基础入门Pyhton教程</title>
      <link>https://www.benniao365.com/</link>
    </image>
    <item>
      <title>int_input问题</title>
      <link>https://www.benniao365.com/thread-52244-1-1.html</link>
      <description><![CDATA[在该段代码中，调用int_input()函数为什么会输出——\'请输入一个整数\',并且如何进行参数传递的呢？——prompt=\'\'是什么意思哇？请教请教]]></description>
      <category>Python问题求助</category>
      <author>四无青年</author>
      <pubDate>Thu, 10 Mar 2022 00:41:00 +0000</pubDate>
    </item>
    <item>
      <title>二行的least=x【0】也是随便定义least的值吗？</title>
      <link>https://www.benniao365.com/thread-52243-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>Python问题求助</category>
      <author>品轩全屋定制</author>
      <pubDate>Thu, 10 Mar 2022 00:35:56 +0000</pubDate>
    </item>
    <item>
      <title>想问个非常弱智的问题</title>
      <link>https://www.benniao365.com/thread-52242-1-1.html</link>
      <description><![CDATA[a = input
b = int(a)
我才学没多久， 0 基础有很多弱智问题。
我知道input int是什么意思。
为什么有时候能直接print(a) 有时候又显示报错呢。也不知道我问的问题有没有毛病，还是自己没搞清楚。
那位大哥能帮忙解释一下，a = input，b = int(a)。这个两句话到底代表了 ...]]></description>
      <category>Python问题求助</category>
      <author>参谋长</author>
      <pubDate>Thu, 10 Mar 2022 00:30:32 +0000</pubDate>
    </item>
    <item>
      <title>for循环打印九九乘法表 来个大哥帮帮我</title>
      <link>https://www.benniao365.com/thread-52241-1-1.html</link>
      <description><![CDATA[for h in range(1,10):
    for l in range(1,h+1):
        print(str(h) + \&quot;×\&quot; + str(l) + \&quot;=\&quot; + str(h*l)+\&quot;\\t\&quot;,end=\'\')
    print()
为什么str(h*l)不能用str(h)*str(l)替代呢？新手这几天刚刚开始学的，好多不懂，求轻锤]]></description>
      <category>Python问题求助</category>
      <author>冰沙王子</author>
      <pubDate>Thu, 10 Mar 2022 00:26:58 +0000</pubDate>
    </item>
    <item>
      <title>初学者的一些小问题</title>
      <link>https://www.benniao365.com/thread-52240-1-1.html</link>
      <description><![CDATA[# 我没看懂这是整么计算出x的Y次幂，， 没懂它的思路。]]></description>
      <category>Python问题求助</category>
      <author>万山红环保周至山</author>
      <pubDate>Thu, 10 Mar 2022 00:24:23 +0000</pubDate>
    </item>
    <item>
      <title>刚看到字典，就卡住了</title>
      <link>https://www.benniao365.com/thread-52239-1-1.html</link>
      <description><![CDATA[我想创建一个这样的字典，为什么会出错呢]]></description>
      <category>Python问题求助</category>
      <author>有种含灯泡</author>
      <pubDate>Thu, 10 Mar 2022 00:23:13 +0000</pubDate>
    </item>
    <item>
      <title>字符串问题</title>
      <link>https://www.benniao365.com/thread-52238-1-1.html</link>
      <description><![CDATA[我想问一下有没有办法把字符串字符两个两个提取，或三个以上的全部提取。
例：
        我喜欢你，但我没有对你的爱。
我想这样提取:我喜欢/你，但我/没有对/你的爱]]></description>
      <category>Python问题求助</category>
      <author>顺道而行</author>
      <pubDate>Thu, 10 Mar 2022 00:20:45 +0000</pubDate>
    </item>
    <item>
      <title>为什么求不出来最大公约数 应该怎么改</title>
      <link>https://www.benniao365.com/thread-52237-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>Python问题求助</category>
      <author>从善如流疾恶如仇</author>
      <pubDate>Thu, 10 Mar 2022 00:16:12 +0000</pubDate>
    </item>
    <item>
      <title>为什么range(1,10)函数没有返回list</title>
      <link>https://www.benniao365.com/thread-52236-1-1.html</link>
      <description><![CDATA[在许多资料中说的range()函数返回的是list数据集，例如range(1,10)应该返回【1,2,3,4,5,6,7,8,9,10】
但我在测试：
&gt;&gt;&gt;range(1,10)
range(1,10)
&gt;&gt;&gt;

但我用下面代码测试能能够确认返回1至是10的list数据
效果：
&gt;&gt;&gt;for i in range(1,10):print(i)
...
1
2
3
4
5
6
7
8
 ...]]></description>
      <category>Python问题求助</category>
      <author>期待一片阳光</author>
      <pubDate>Thu, 10 Mar 2022 00:13:01 +0000</pubDate>
    </item>
    <item>
      <title>TXT数据处理</title>
      <link>https://www.benniao365.com/thread-52235-1-1.html</link>
      <description><![CDATA[最近在编写个小程序，想要对比两个文件内数据值，再替换文件的第一列，然后存储于TXT文件内，程序如下
但是保存的\'结果文档内只有‘temp2\'列表的最后一行，  请问是怎么回事
[\'15\', \'5272\', \'5376\', \'5377\', \'5378\', \'15000\', \'14999\', \'14998\', \'15002\', \'15001\', \'150 ...]]></description>
      <category>Python问题求助</category>
      <author>顾轶</author>
      <pubDate>Thu, 10 Mar 2022 00:11:21 +0000</pubDate>
    </item>
    <item>
      <title>小白求助</title>
      <link>https://www.benniao365.com/thread-52234-1-1.html</link>
      <description><![CDATA[找素数 这个代码为啥不行啊]]></description>
      <category>Python问题求助</category>
      <author>川英</author>
      <pubDate>Wed, 09 Mar 2022 23:26:22 +0000</pubDate>
    </item>
    <item>
      <title>适合所有人的 Python：以正确的方式掌握 Python</title>
      <link>https://www.benniao365.com/thread-52224-1-1.html</link>
      <description><![CDATA[大多数人说Python作为编程语言，很容易学习。然而，学习之旅表明，掌握机制并不容易。但是，付出很多努力可以在掌握Python方面取得好的结果。以下内容可以激励任何希望掌握此工具的人。
[*]Python是世界上搜索次数最多的语言程序;
[*]像谷歌这样的几家IT巨头经常使用Pyt ...]]></description>
      <category>Python问题求助</category>
      <author>黄炎</author>
      <pubDate>Tue, 08 Mar 2022 08:10:26 +0000</pubDate>
    </item>
    <item>
      <title>and 和 &amp; 二进制数比较中的区别</title>
      <link>https://www.benniao365.com/thread-52222-1-1.html</link>
      <description><![CDATA[请教高人能帮忙解释下 and 和 &amp; 在二进制数 比较中的区别吗？ 似乎二进制数不能用 and 和 or， 但我实在不理解结果的逻辑。10进制数两个结果没有区别。
上面的结果依次是
2
1
0
3
不理解2 和1 是怎么判断出来的
 ...]]></description>
      <category>Python问题求助</category>
      <author>匆晓见</author>
      <pubDate>Tue, 08 Mar 2022 08:06:10 +0000</pubDate>
    </item>
    <item>
      <title>一个python小疑惑</title>
      <link>https://www.benniao365.com/thread-52218-1-1.html</link>
      <description><![CDATA[为什么这个输出 6，7，8

而这个输出的是 6，6，6。

这不是应该是一样的吗？不是很理解。]]></description>
      <category>Python问题求助</category>
      <author>东方建</author>
      <pubDate>Tue, 08 Mar 2022 07:58:12 +0000</pubDate>
    </item>
    <item>
      <title>super函数的调用次序看不懂</title>
      <link>https://www.benniao365.com/thread-52217-1-1.html</link>
      <description><![CDATA[&gt;&gt;&gt; d = D()
进入D…
进入B…
进入C…
进入A…
离开A…
离开C…
离开B…
离开D…
这个运行的次序是怎么回事啊，他跟
class A():
    def __init__(self):
        print(\&quot;进入A…\&quot;)
        print(\&quot;离开A…\&quot;)

class B(A):
    def __init__(self):
        print(\&quot;进入 ...]]></description>
      <category>Python问题求助</category>
      <author>壹贰叁石头人</author>
      <pubDate>Tue, 08 Mar 2022 07:55:48 +0000</pubDate>
    </item>
    <item>
      <title>随机排列组合</title>
      <link>https://www.benniao365.com/thread-52216-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>Python问题求助</category>
      <author>走了你还有谁</author>
      <pubDate>Tue, 08 Mar 2022 07:52:45 +0000</pubDate>
    </item>
    <item>
      <title>这段代码看不懂</title>
      <link>https://www.benniao365.com/thread-52213-1-1.html</link>
      <description><![CDATA[谁能解释下这段代码看不懂

为什么会有这段
while i:
        print(\' \', end = \'\')
        i = i - 1

这个又是什么意思
print()  打印空的？]]></description>
      <category>Python问题求助</category>
      <author>温文尔雅彬彬有礼</author>
      <pubDate>Tue, 08 Mar 2022 07:47:22 +0000</pubDate>
    </item>
    <item>
      <title>初学者请教</title>
      <link>https://www.benniao365.com/thread-52212-1-1.html</link>
      <description><![CDATA[schoolname = \'python\'print(schoolname)

写代码一般每一句后面要不要加符号？   比如分号“；”之类的？  

有没有什么潜规则或者默认规则吗？  比如上面的代码要怎么书写才能达到美观、工整？
 ...]]></description>
      <category>Python问题求助</category>
      <author>好人一生吉祥</author>
      <pubDate>Tue, 08 Mar 2022 07:43:23 +0000</pubDate>
    </item>
    <item>
      <title>请教各位，\'float\' object is not subscriptable 的问题出在哪里啊</title>
      <link>https://www.benniao365.com/thread-52210-1-1.html</link>
      <description><![CDATA[运行结果报错是

  File \&quot;C:\\Python_3.6\\Python_File_Py\\EX_001\\range_print.py\&quot;, line 4, in 
    k1 = list_001[num1][0]
TypeError: \'float\' object is not subscriptable

请教大家应该怎么改正啊]]></description>
      <category>Python问题求助</category>
      <author>夺命土豆泥</author>
      <pubDate>Tue, 08 Mar 2022 07:40:02 +0000</pubDate>
    </item>
    <item>
      <title>python assert断言异常</title>
      <link>https://www.benniao365.com/thread-52207-1-1.html</link>
      <description><![CDATA[本来应该返回异常，但是确返回的是333经过测试发现,当assert b &lt; 0 时，异常才会出现或者把or改成and搞不懂这是为什么实例中a才是小于0吧，而且or是(或)，两个有一个对了，就应该可以返回异常啊，为什么是and(且)啊
 ...]]></description>
      <category>Python问题求助</category>
      <author>一点儿也不饿</author>
      <pubDate>Tue, 08 Mar 2022 07:33:30 +0000</pubDate>
    </item>
  </channel>
</rss>