IF文件存在指令报错 expected str, bytes or os.PathLike object, not
回答
收藏

IF文件存在指令报错 expected str, bytes or os.PathLike object, not

学习的崽(会采纳回答)
2024-01-15 14:10·浏览量:1197
学习的崽(会采纳回答)
发布于 2024-01-15 09:37更新于 2024-01-15 14:101197浏览



                   0%| | 0/181 [00:00<?, ?it/s]

1%| | 1/181 [00:00<00:42, 4.21it/s]Traceback (most recent call last):

File "E:\ShadowBot\shadowbot-5.14.38\python\lib\runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)

File "E:\ShadowBot\shadowbot-5.14.38\python\lib\runpy.py", line 85, in _run_code

exec(code, run_globals)

File "E:\ShadowBot\shadowbot-5.14.38\python\lib\site-packages\xbot_interpreter.py", line 97, in <module>

main()

File "E:\ShadowBot\shadowbot-5.14.38\python\lib\site-packages\xbot_interpreter.py", line 57, in main

try:

File "C:\Users\Administrator\AppData\Local\ShadowBot\users\606414238480314370\apps\9e44accd-2897-488d-b6de-7e8239fed697\xbot_robot\main.py", line 44, in main

if xbot_visual.file.if_exist(path=文件路径, expect_exist="exist", _block=("main", 17, "IF 文件存在")):

File "<string>", line 89, in wrapper

File "<string>", line 84, in wrapper

File "<string>", line 24, in if_exist

File "<string>", line 17, in expand_path

File "<string>", line 4, in expand_environment_strings

File "E:\ShadowBot\shadowbot-5.14.38\python\lib\ntpath.py", line 341, in expandvars

path = os.fspath(path)

TypeError: expected str, bytes or os.PathLike object, not list


收藏1
全部回答1
最新
发布回答
回答