티스토리 뷰

공부

[Python] dict to string

seunggabi 승가비 2020. 12. 10. 11:44
import json
json.dumps(dict)

https://stackoverflow.com/questions/4547274/convert-a-python-dict-to-a-string-and-back

 

Convert a python dict to a string and back

I am writing a program that stores data in a dictionary object, but this data needs to be saved at some point during the program execution and loaded back into the dictionary object when the progra...

stackoverflow.com

 

'공부' 카테고리의 다른 글

[Spark] hadoop.fs.default.name (default file system)  (0) 2020.12.13
[Spark] hive dynamic partition  (0) 2020.12.13
[Python] dict to string  (0) 2020.12.10
[Python] call method by name of function  (0) 2020.12.10
[Python] beautify JSON  (0) 2020.12.10
[Spark] string to date  (0) 2020.12.10
댓글
댓글쓰기 폼