yaml.scanner.ScannerError:报错处理

报错信息:

yaml.scanner.ScannerError: while scanning for the next token
found character '%' that cannot start any token
in "D:\勿动\MS\api_proctice\wz_api_frame\config.yaml", line 4, column 14

报错截图:

 

 

切换yaml文件,发现yaml文件中字符串中有%时候,需要加上引号,标识字符串:

 

 修改后:

 

 运行结果:

 

posted on 2022-05-12 17:51  Titen  阅读(812)  评论(0编辑  收藏  举报

导航