小编Amb*_*ika的帖子

如何在javascript中运行系统命令?

我需要列出javascript中的所有文件,如"ls"??

javascript

10
推荐指数
3
解决办法
3万
查看次数

我可以使用Python创建一个firefox插件吗?

可能重复:
firefox扩展的python?

我想为Firefox创建一个可以简化文本的插件.我有代码来简化用Python编写的文本.所以我需要知道我是否可以在Python中构建Firefox插件?

python firefox-addon

10
推荐指数
1
解决办法
1万
查看次数

在python中动词的NodeBox错误

我下载了包http://nodebox.net/code/index.php/Linguistics#verb_conjugation 即使我试图获得动词的时态,我也会收到错误.

import en
print en.is_verb('use')
#prints TRUE

print en.verb.tense('use')

KeyError                                  Traceback (most recent call last)

/home/cse/version2_tense.py in <module>()
----> 1 
      2 
      3 
      4 
      5 

/home/cse/en/__init__.pyc in tense(self, word)
    124 
    125     def tense(self, word):
--> 126         return verb_lib.verb_tense(word)
    127 
    128     def is_tense(self, word, tense, negated=False):

/home/cse/en/verb/__init__.pyc in verb_tense(v)
    175 
    176     infinitive = verb_infinitive(v)
--> 177     a = verb_tenses[infinitive]
    178     for tense in verb_tenses_keys:
    179         if a[verb_tenses_keys[tense]] == v:

KeyError: ''
Run Code Online (Sandbox Code Playgroud)

python nodebox

2
推荐指数
1
解决办法
534
查看次数

标签 统计

python ×2

firefox-addon ×1

javascript ×1

nodebox ×1