Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

loade()少一个参数 #35

Open
z-z-zhao opened this issue May 1, 2022 · 2 comments
Open

loade()少一个参数 #35

z-z-zhao opened this issue May 1, 2022 · 2 comments

Comments

@z-z-zhao
Copy link

z-z-zhao commented May 1, 2022

self.update(yaml.load(fo.read()))

TypeError: load() missing 1 required positional argument: 'Loader'

修改为:
self.update(yaml.load(fo.read(),Loader=yaml.SafeLoader))

@funnymean
Copy link

按照本方法成功了,感谢

@weifuqiang007
Copy link

厉害厉害

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants