我正在嘗試使用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'如何包含一行? –