TypeError:找不到必需的参数“name”(位置1)

2024-07-05 09:45:52 发布

您现在位置:Python中文网/ 问答频道 /正文

当我尝试为gdb运行我的第一个python脚本时,出现以下错误

TypeError: Required argument 'name' (pos 1) not found

我的剧本

^{pr2}$

我只是想学习用于gdb的python脚本

错误

(gdb) source firstScript.py
Traceback (most recent call last):
  File "gdbtest2.py", line 12, in <module>
    HelloWorld ()
TypeError: Required argument 'name' (pos 1) not found

Tags: namepypos脚本source错误requirednot