"PyYAML"의 두 판 사이의 차이

(새 문서: ==개요== ;PyYAML * YAML parser and emitter for Python <source lang='r'> import yaml with open("example.yaml", 'r') as stream: try: print(yaml.safe_load(stream)) exc...)
 
3번째 줄: 3번째 줄:
* YAML parser and emitter for Python
* YAML parser and emitter for Python


<source lang='r'>
<source lang='python'>
import yaml
import yaml
with open("example.yaml", 'r') as stream:
with open("example.yaml", 'r') as stream:

2019년 8월 27일 (화) 10:44 판

1 개요

PyYAML
  • YAML parser and emitter for Python
import yaml
with open("example.yaml", 'r') as stream:
    try:
        print(yaml.safe_load(stream))
    except yaml.YAMLError as e:
        print(e)

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}