+ -
当前位置:首页 → 问答吧 → 下划线加个括号 _("xxxxxx") 是什么意思?

下划线加个括号 _("xxxxxx") 是什么意思?

时间:2011-06-28

来源:互联网

File "./btdownloadheadless.py", line 138
  '(%s)' % (statistics['numSeeds'],
  ^
SyntaxError: invalid syntax

--------------------------------------------------------------------------
运行btdownloadheadless.py有以上出错提示,第138行如下:

self.seedStatus = _("%d seen now, plus %d distributed copies ") \
  '(%s)' % (statistics['numSeeds'],
  statistics['numCopies'], nextCopies)

错在哪里?下划线加个括号 _("xxxxxx") 是什么意思?

作者: Kernel_Don   发布时间: 2011-06-28

调用名为_的函数,参数为"xxxxxx"。

作者: iambic   发布时间: 2011-06-28

热门下载

更多