<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>笨鸟编程-零基础入门Pyhton教程 - Python技术文章</title>
    <link>https://www.benniao365.com/forum-52-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 12:41:04 +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>python新式类和旧式类区别</title>
      <link>https://www.benniao365.com/thread-52266-1-1.html</link>
      <description><![CDATA[python的新式类是2.2版本引进来的，我们可以将之前的类叫做经典类或者旧式类。为什么要在2.2中引进new style class呢？官方给的解释是：为了统一类(class)和类型(type)。在2.2之前，比如2.1版本中，类和类型是不同的，如a是ClassA的一个实例，那么a.__class__返回 ‘ cl ...]]></description>
      <category>Python技术文章</category>
      <author>阿凡哒</author>
      <pubDate>Sun, 13 Mar 2022 11:32:10 +0000</pubDate>
    </item>
    <item>
      <title>Python的局部变量和全局变量使用解惑</title>
      <link>https://www.benniao365.com/thread-52265-1-1.html</link>
      <description><![CDATA[局部变量：在函数中定义的变量，作用域是当前函数，只对当前函数起作用。
全局变量：在代码开头定义的变量，作用域是整段代码，对整段代码起作用。先看下面的实例， 最后给结论。输出结果：结论：当全局变量和局部变量相同时，函数内部优先使用局部变量， 如果没有局部 ...]]></description>
      <category>Python技术文章</category>
      <author>东方神奇</author>
      <pubDate>Sun, 13 Mar 2022 11:31:26 +0000</pubDate>
    </item>
    <item>
      <title>Python中%r和%s的区别</title>
      <link>https://www.benniao365.com/thread-52264-1-1.html</link>
      <description><![CDATA[%r用rper()方法处理对象%s用str()方法处理对象
函数str() 用于将值转化为适于人阅读的形式，而repr() 转化为供解释器读取的形式（如果没有等价的语法，则会发生SyntaxError 异常） 某对象没有适于人阅读的解释形式的话， str() 会返回与repr()等同的值。很多类型，诸如 ...]]></description>
      <category>Python技术文章</category>
      <author>爱里没有眼泪爱d</author>
      <pubDate>Sun, 13 Mar 2022 11:27:56 +0000</pubDate>
    </item>
    <item>
      <title>运维人员如何学习python编程</title>
      <link>https://www.benniao365.com/thread-52263-1-1.html</link>
      <description><![CDATA[从不会写代码，到自己独立能写代码解决问题 。这个问题很重要！盲目学习所谓的项目，最后还是不会自己写代码解决问题。首先解决了独立能写代码解决问题，再通过项目来加强训练。运维必须懂开发，特别是python开发，已经形成大家的共识，不懂开发的运维，路会越走越窄。
 ...]]></description>
      <category>Python技术文章</category>
      <author>吃饭挑大碗</author>
      <pubDate>Sun, 13 Mar 2022 11:26:25 +0000</pubDate>
    </item>
    <item>
      <title>Python开发者节省时间的10个方法</title>
      <link>https://www.benniao365.com/thread-52262-1-1.html</link>
      <description><![CDATA[Python 是一个美丽的语言，可以激发用户对它的爱。所以如果你试图加入程序员行列，或者你有点厌倦C++，Perl，Java 和其他语言，我推荐你尝试Python。Python有很多吸引程序员的功能 ，它易学，面向对象，字节码编译，免费且开源。还有运行时检查。完整快速的支持，可以执 ...]]></description>
      <category>Python技术文章</category>
      <author>有味道的凉水黄</author>
      <pubDate>Sun, 13 Mar 2022 11:24:28 +0000</pubDate>
    </item>
    <item>
      <title>Python中set的用法</title>
      <link>https://www.benniao365.com/thread-52261-1-1.html</link>
      <description><![CDATA[python 的集合类型和 其他语言类似, 是一个无序不重复元素集,我在之前学过的其他的语言好像没有见过这个类型，基本功能包括关系测试和消除重复元素.集合对象还支持union(联合), intersection(交), difference(差)和sysmmetricdifference(对称差集)等数学运算,和我们初中 ...]]></description>
      <category>Python技术文章</category>
      <author>默默地积极积c</author>
      <pubDate>Sun, 13 Mar 2022 11:24:05 +0000</pubDate>
    </item>
    <item>
      <title>详解Python中open()函数指定文件打开方式的用法</title>
      <link>https://www.benniao365.com/thread-52260-1-1.html</link>
      <description><![CDATA[当我们用open()函数去打开文件的时候，有好几种打开的模式。\'r\'-&gt;只读\'w\'-&gt;只写，文件已存在则清空，不存在则创建。\'a\'-&gt;追加，写到文件末尾\'b\'-&gt;二进制模式,比如打开图像、音频、word文件。\'+\'-&gt;更新(可读可写)这个带\'+\'号的有点难以理解，上代码感受下。可以看到，上 ...]]></description>
      <category>Python技术文章</category>
      <author>三生万物九九归一</author>
      <pubDate>Sun, 13 Mar 2022 06:15:09 +0000</pubDate>
    </item>
    <item>
      <title>python强大的字符串格式化函数 - format</title>
      <link>https://www.benniao365.com/thread-52259-1-1.html</link>
      <description><![CDATA[自python2.6开始，新增了一种格式化字符串的函数str.format()，可谓威力十足。那么，他跟之前的%型格式化字符串相比，有什么优越的存在呢？让我们来揭开它羞答答的面纱。语法它通过{}和:来代替%位置方法格式化字符串的format函数可以接受不限个参数，参数位置可以不按顺 ...]]></description>
      <category>Python技术文章</category>
      <author>大宝妈</author>
      <pubDate>Sun, 13 Mar 2022 06:13:05 +0000</pubDate>
    </item>
    <item>
      <title>Python2和Python3中print的不同点</title>
      <link>https://www.benniao365.com/thread-52258-1-1.html</link>
      <description><![CDATA[在Python2和Python3中都提供print()方法来打印信息,但两个版本间的print稍微有差异主要体现在以下几个方面：1.python3中print是一个内置函数，有多个参数，而python2中print是一个语法结构；2.Python2打印时可以不加括号：print \'hello world\'， Python3则需要加括号    ...]]></description>
      <category>Python技术文章</category>
      <author>满堂红</author>
      <pubDate>Sun, 13 Mar 2022 06:07:12 +0000</pubDate>
    </item>
    <item>
      <title>python字符串排序方法</title>
      <link>https://www.benniao365.com/thread-52257-1-1.html</link>
      <description><![CDATA[一般情况下，python中对一个字符串排序相当麻烦：一、python中的字符串类型是不允许直接改变元素的。必须先把要排序的字符串放在容器里，如list。二、python中的list容器的sort()函数没返回值。所以在python中对字符串排序往往需要好几行代码。具体实现方法如下：对于刚 ...]]></description>
      <category>Python技术文章</category>
      <author>焱火</author>
      <pubDate>Sun, 13 Mar 2022 06:04:04 +0000</pubDate>
    </item>
    <item>
      <title>Python时间获取及转换知识汇总</title>
      <link>https://www.benniao365.com/thread-52256-1-1.html</link>
      <description><![CDATA[时间处理是我们日常开发中最最常见的需求，例如：获取当前datetime、获取当天date、获取明天/前N天、获取当天开始和结束时间(00:00:00 23:59:59)、获取两个datetime的时间差、获取本周/本月/上月最后一天等。而这些转换看起来很乱不容易记住，那么今天我们就来总结一下p ...]]></description>
      <category>Python技术文章</category>
      <author>代表月亮说爱你</author>
      <pubDate>Sun, 13 Mar 2022 06:02:38 +0000</pubDate>
    </item>
    <item>
      <title>Python 中__new__方法详解及使用</title>
      <link>https://www.benniao365.com/thread-52255-1-1.html</link>
      <description><![CDATA[__new__ 的作用在Python中__new__方法与__init__方法类似，但是如果两个都存在那么__new__闲执行。在基础类object中，__new__被定义成了一个静态方法，并且需要传递一个参数cls。Cls表示需要实例化的类，此参数在实例化时由Python解析器自动提供。new()是在新式类中新出 ...]]></description>
      <category>Python技术文章</category>
      <author>天边的一只雁卵</author>
      <pubDate>Sun, 13 Mar 2022 05:43:55 +0000</pubDate>
    </item>
    <item>
      <title>Python3中strip()、lstrip()、rstrip()用法详解</title>
      <link>https://www.benniao365.com/thread-52254-1-1.html</link>
      <description><![CDATA[Python中有三个去除头尾字符、空白符的函数，它们依次为:strip： 用来去除头尾字符、空白符(包括\\n、\\r、\\t、\' \'，即：换行、回车、制表符、空格)lstrip：用来去除开头字符、空白符(包括\\n、\\r、\\t、\' \'，即：换行、回车、制表符、空格)rstrip：用来去除结尾字符、空白 ...]]></description>
      <category>Python技术文章</category>
      <author>断刺</author>
      <pubDate>Sun, 13 Mar 2022 05:42:16 +0000</pubDate>
    </item>
    <item>
      <title>Python3 pickle模块的使用详解</title>
      <link>https://www.benniao365.com/thread-52253-1-1.html</link>
      <description><![CDATA[pickle模块特点1、只能在python中使用，只支持python的基本数据类型。2、可以处理复杂的序列化语法。（例如自定义的类的方法，游戏的存档等）3、序列化的时候，只是序列化了整个序列对象，而不是内存地址。pickle: 用于python特有的类型和python的数据类型间进行转换，p ...]]></description>
      <category>Python技术文章</category>
      <author>孤单木头人</author>
      <pubDate>Sun, 13 Mar 2022 05:38:06 +0000</pubDate>
    </item>
    <item>
      <title>python3 数组(列表)初始化</title>
      <link>https://www.benniao365.com/thread-52252-1-1.html</link>
      <description><![CDATA[python3 数组(列表)初始化1. 初始化一个定长的数组
有时需要预定义一个定长的数组，并给每个元素赋值方法1： python3中代码如下：
结果：方法2： python3中代码如下：
结果：
2. 初始化创建n行m列数组
结果：
 ...]]></description>
      <category>Python技术文章</category>
      <author>花漫楼</author>
      <pubDate>Sun, 13 Mar 2022 05:36:32 +0000</pubDate>
    </item>
    <item>
      <title>333333333333333</title>
      <link>https://www.benniao365.com/thread-52251-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>Python技术文章</category>
      <author>方能</author>
      <pubDate>Sat, 12 Mar 2022 18:02:55 +0000</pubDate>
    </item>
    <item>
      <title>dddddddddddddddddd</title>
      <link>https://www.benniao365.com/thread-52250-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>Python技术文章</category>
      <author>阳林燊</author>
      <pubDate>Fri, 11 Mar 2022 02:52:53 +0000</pubDate>
    </item>
    <item>
      <title>rrrrrrrrrrrrrrrrrrrrrrr</title>
      <link>https://www.benniao365.com/thread-52249-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>Python技术文章</category>
      <author>红汤焖肉吧</author>
      <pubDate>Fri, 11 Mar 2022 02:51:45 +0000</pubDate>
    </item>
    <item>
      <title>sssssssssssssssssssss</title>
      <link>https://www.benniao365.com/thread-52248-1-1.html</link>
      <description><![CDATA[sssssssssssssssssss]]></description>
      <category>Python技术文章</category>
      <author>捡到一只小可爱</author>
      <pubDate>Fri, 11 Mar 2022 02:50:50 +0000</pubDate>
    </item>
    <item>
      <title>水水水水水水水水水水水水</title>
      <link>https://www.benniao365.com/thread-52247-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>Python技术文章</category>
      <author>参星</author>
      <pubDate>Thu, 10 Mar 2022 06:44:41 +0000</pubDate>
    </item>
  </channel>
</rss>