擅长:python、mysql、java
<p><a href="http://pypi.python.org/pypi/python-tvrage/0.1.4" rel="nofollow">Python TVRage API</a>需要的是整数,而不是字符串(这是从<code>argv</code>得到的):</p>
<pre><code>name = temp.season(int(b)).episode(int(c))
</code></pre>
<p>如果第四季第六集存在的话,将会更正错误。在</p>
<p>您应该看看Python附带的命令行解析模块。对于3.2/2.7或更高版本,请使用<a href="http://docs.python.org/dev/library/argparse.html" rel="nofollow">argparse</a>。对于旧版本,请使用<a href="http://docs.python.org/library/optparse.html" rel="nofollow">optparse</a>。如果您已经知道C的<code>getopt</code>,请使用<a href="http://docs.python.org/library/getopt.html" rel="nofollow">getopt</a>。在</p>