我有一个文件,该文件由以下程序生成:
摘录:
group0 = ['ParentPom']
group1 = ['Commons','http', 'availability','ingestPom','abcCommons','solrIndex','123Service']
...
group10=['totalCommons','Generator']
我怎么能在我的python脚本中包含这个,尝试导入但没有运气
>>> import dependencies_custom
>>> print (group2[0])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'group2' is not defined
在您正在使用的
import
表单中,您应该能够通过类型符号。如果只想使用just
group2[0]
表示法,请尝试使用:相关问题 更多 >
编程相关推荐