<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>520量化编程 - Python编程文档</title>
    <link>https://520lhjy.com/forum.php?mod=forumdisplay&amp;fid=158</link>
    <description>Latest 20 threads of Python编程文档</description>
    <copyright>Copyright(C) 520量化编程</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Fri, 10 Apr 2026 12:38:00 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://520lhjy.com/static/image/common/logo_88_31.gif</url>
      <title>520量化编程</title>
      <link>https://520lhjy.com/</link>
    </image>
    <item>
      <title>获取账户持仓和可用资金的函数</title>
      <link>https://520lhjy.com/forum.php?mod=viewthread&amp;tid=1964</link>
      <description><![CDATA[这段代码定义了两个函数：get_avaliable 和 get_holdings。这些函数用于获取账户中的可用资金和持仓信息。

get_avaliable 函数：#获取可用资金
a. def get_avaliable(accountid, datatype):函数接受两个参数：accountid（账户 ID）和 datatype（数据类型）。
b. result ...]]></description>
      <category>Python编程文档</category>
      <author>520量化编程</author>
      <pubDate>Fri, 05 Apr 2024 03:12:08 +0000</pubDate>
    </item>
    <item>
      <title>strftime()方法</title>
      <link>https://520lhjy.com/forum.php?mod=viewthread&amp;tid=1656</link>
      <description><![CDATA[Python time strftime() 方法[hr]描述Python time strftime() 函数用于格式化时间，返回以可读字符串表示的当地时间，格式由参数 format 决定。语法strftime()方法语法：
参数
[*]format -- 格式字符串。
[*]t -- 可选的参数 t 是一个 struct_time 对象。
返回值返回以 ...]]></description>
      <category>Python编程文档</category>
      <author>俊熙交易沙龙</author>
      <pubDate>Sat, 29 Apr 2023 15:09:52 +0000</pubDate>
    </item>
    <item>
      <title>format()方法的基本使用</title>
      <link>https://520lhjy.com/forum.php?mod=viewthread&amp;tid=1655</link>
      <description><![CDATA[原文勃克利发表文章








.format()如果看不懂上述方法也没关系，我们可以用一个具体的例子来说明输出结果为结果表明，“小明”、“老师”这两个字符按次序分别填充入两个{}中，这个例子已经形象的表现出format的用法。
但是为什么要这样做呢？为什么不直接输入：小 ...]]></description>
      <category>Python编程文档</category>
      <author>俊熙交易沙龙</author>
      <pubDate>Sat, 29 Apr 2023 15:05:56 +0000</pubDate>
    </item>
  </channel>
</rss>