Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Python2.7でこのコードを見てください。
>>> import yaml >>> yaml.load('string: 01') {'string': 1} >>> :(
01yamlファイルを変更せずに文字列を取得することは可能ですか?ドキュメントに何も見つかりませんでした。
01
試す:
>> import yaml >> yaml.load('string: 01', Loader=yaml.loader.BaseLoader) {u'string': u'01'}