Last active
October 3, 2023 03:43
-
-
Save hyounggyu/200d8ac3fa1c90c87cfc34643fdfbf2f to your computer and use it in GitHub Desktop.
[PyYAML] dump with data type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import yaml | |
data = {} | |
yaml.safe_dump( | |
data, | |
sys.stdout, | |
default_flow_style=False, | |
default_style='"', | |
sort_keys=True, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment