gpt4 book ai didi

python - PDB 不一致地识别变量

转载 作者:太空宇宙 更新时间:2023-11-04 05:54:20 29 4
gpt4 key购买 nike

<分区>

foo
(Pdb) *** NameError: name 'foo' is not defined
foo = 'foo'
(Pdb) print(foo)
(Pdb) *** NameError: name 'foo' is not defined
foo
(Pdb) 27

(注意:在之前的 pdb session 中,我将 foo 定义为 27)

继续:

foo = "foo"
(Pdb) foo
(Pdb) *** NameError: name 'foo' is not defined
print(foo)
(Pdb) *** NameError: name 'foo' is not defined
foo
(Pdb) *** NameError: name 'foo' is not defined
foo
(Pdb) 'foo'
foo
(Pdb) *** NameError: name 'foo' is not defined

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com