我正在尝试使用Python工作的argparse模块。我的问题是,在一个新的安装,我得到如下:argparse模块在Python中不工作
File "test.py", line 3, in <module>
import argparse
File "/home/jon/Pythons/realmine/argparse.py", line 3, in <module>
parser = argparse.ArgumentParser(description='Short sample app')
AttributeError: 'module' object has no attribute 'ArgumentParser'
test.py
是:
import argparse
显然,我失去了一些东西。谁能帮忙?
错误引用第3行时'test.py'如何包含一行? –