<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Leejian - 导读 - 最新回复</title>
    <link>http://www.leejian.cn/forum.php?mod=guide&amp;view=new</link>
    <description>最新回复</description>
    <copyright>Copyright(C) Leejian</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Mon, 22 Jun 2026 16:09:04 +0000</lastBuildDate>
    <ttl>30</ttl>
    <image>
      <url>http://www.leejian.cn/static/image/common/logo_88_31.gif</url>
      <title>Leejian</title>
      <link>http://www.leejian.cn/</link>
    </image>
    <item>
      <title>python中将列表内容写入txt文档</title>
      <link>http://www.leejian.cn/forum.php?mod=viewthread&amp;tid=54</link>
      <description><![CDATA[1）打开：f = open(\'1.txt\',\'r\')

#w 只能操作写入 r 只能读取 a 向文件追加

#w+ 可读可写 r+可读可写 a+可读可追加

#wb+写入进制数据

#w模式打开文件，如果而文件中有数据，再次写入内容，会把原来的覆盖掉

2）读取：

        1、read(int)：读取文件内容。如果指 ...]]></description>
      <category>学习笔记</category>
      <author>kongmeng</author>
      <pubDate>Wed, 07 Dec 2022 12:24:43 +0000</pubDate>
    </item>
    <item>
      <title>Lean OpenWRT 编译环境搭建</title>
      <link>http://www.leejian.cn/forum.php?mod=viewthread&amp;tid=48</link>
      <description><![CDATA[1、环境要求
编译一个可安装的OpenWrt固件镜像文件（大约8MB大小），你需要：
[*]一个纯净的OpenWrt编译系统大约需要200MB的空间。
[*]一个包含feeds的OpenWrt编译系统大约需要300MB的空间。
[*]编译feeds中的软件包大约需要2.1GB的空间用于存放下载来的源代码。
[*]构 ...]]></description>
      <category>openwrt</category>
      <author>kongmeng</author>
      <pubDate>Mon, 14 Dec 2020 15:01:05 +0000</pubDate>
    </item>
    <item>
      <title>OpenWrt 源码编译修改默认IP地址和网关DNS地址</title>
      <link>http://www.leejian.cn/forum.php?mod=viewthread&amp;tid=47</link>
      <description><![CDATA[在OpenWrt源码编译后默认的登录IP地址为192.168.1.1，往往这个IP地址跟我们现在所有的路由器IP冲突，对进入管理页面和终端造成麻烦，所以在编译之前修改掉默认的IP地址。Lean大神的源码默认会修改IP在另一个段，为192.168 ...]]></description>
      <category>openwrt</category>
      <author>kongmeng</author>
<enclosure url="http://www.leejian.cn/data/attachment/forum/202012/14/011440o6ojfldldkljon8l.jpg" length="25776" type="image/jpeg" />      <pubDate>Sun, 13 Dec 2020 17:15:54 +0000</pubDate>
    </item>
    <item>
      <title>Pthon 定义函数</title>
      <link>http://www.leejian.cn/forum.php?mod=viewthread&amp;tid=6</link>
      <description><![CDATA[def sayhello():
      print(“hello world”)

def max(a,b):
     if a&gt;b:
         return a
     else:
         return b

sayHello()
print(max(2,3))


==============================
运行效果：

Hello world  //def sayhello 函数
3  //def max 函数

 .]]></description>
      <category>学习笔记</category>
      <author>kongmeng</author>
      <pubDate>Mon, 26 Jun 2017 03:20:45 +0000</pubDate>
    </item>
  </channel>
</rss>