FSStore.ÆÄÀÏ I / OÀÇ DICT¿Í À¯»çÇÑ °´Ã¼ | |
Áö±Ý ´Ù¿î·Îµå |
FSStore. ¼øÀ§ ¹× ¿ä¾à
±¤°í
- ƯÇã:
- MIT/X Consortium Lic...
- °¡°Ý:
- FREE
- °Ô½ÃÀÚ À̸§:
- startling
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://cytoplasm.somethingsido.com
FSStore. ű×
FSStore. ¼³¸í
FSStore´Â ÆÄÀÏ I / O.FSStore¿¡ ´ëÇÑ DICT¿Í À¯»çÇÑ °³Ã¼¸¦ »ç¿ëÇÏ´Â ½¬¿î ¹æ¹ýÀ» Á¦°øÇÏ´Â ÆÄÀ̽㠸ðµâÀÔ´Ï´Ù. µ¥ÀÌÅͺ£À̽º¸¦ ´ëüÇÏ·Á´Â °ÍÀº ¾Æ´Õ´Ï´Ù. x ¼Ó¼ºÀÌÀÖ´Â °´Ã¼¸¦ ½±°Ô (È¿À²ÀûÀ¸·Î) °Ë»ö ÇÒ ¼ö ¾ø½À´Ï´Ù. ÆÄÀÏ ¹× µð·ºÅ丮¿¡ ¸ÊÇÎÇÏ´Â ¹®ÀÚ¿°ú ¹®ÀÚ¿ÀÇ ¹®ÀÚ¿°ú ¹Ì¸® µÎ °¡Áö À¯Çü ¸¸ ÀÖÀ¸¸ç, ÀÛÀº API.IT°¡ÀÖ´Â Å° °ª ½Ö¸¸ ÇÊ¿äÇÒ ¶§¸¸ º»°ÝÀûÀÎ µ¥ÀÌÅͺ£À̽ºÀÇ ´ë¾ÈÀ̵Ǿî¾ßÇÕ´Ï´Ù. ²Ï °£´ÜÇÑ : # - * - ÄÚµù : UTF-8 - * - FSStore °¡Á® ¿À±â ÀúÀå¼Ò¿¡¼ # "Å×½ºÆ®"s = ÀúÀå¼Ò ( "Å×½ºÆ®") # ¹®ÀÚ¿À» ÆÄÀÏ¿¡ ÀúÀå = "hello, fsstore"# ºó µð·ºÅ丮¸¦ ¸¸µì´Ï´Ù = {} # ºñ¾î ÀÖÁö ¾ÊÀº µð·ºÅ丮¸¦ ¸¸µì´Ï´Ù = { "Çϳª": "1, i, i, Çϳª", "2 ":"2, II, II, 2 ",} # µð·ºÅ丮¸¦ ¾÷µ¥ÀÌÆ® . ¾÷µ¥ÀÌÆ® ({"first_dir_file ":"Hello, World. "}) # ÆÄÀÏÀ̳ª µð·ºÅ丮ÀÇ °æ·Î¸¦ °¡Á®¿É´Ï´Ù ( ¹Ýµå½Ã ¾ÆÁ÷ Á¸ÀçÇؾßÇÕ´Ï´Ù.) s.get_path ( "first_file") # >> "testing / first_file"# ÆÄÀÏ °´Ã¼¸¦ °¡Á® ¿À´Â °æ¿ì s.get_fileÀ» ¹Ýº¹ ÇÒ ¼ö ÀÖ½À´Ï´Ù ( "first_file", "r") F : F : PRINT LINE #¿¡ ´ëÇÑ LINE # ¶Ç´Â ÆÄÀÏ°ú °°Àº objectImport jsonwith s.get_fileÀÌ ÇÊ¿äÇÑ ÇÔ¼ö¸¦ »ç¿ëÇÏ·Á´Â °æ¿ì second_file ","w ") f : json.dump (, f, indent = 4) #ÁÖÀÇ »çÇ× - Ç×»ó`À¯´Ï ÄÚµå"¸¦ ÀúÀåÇϱâ Àü¿¡ Ç×»ó`À¯´Ï ÄÚµå`°´Ã¼¸¦ ÀÎÄÚµùÇϽʽÿÀ. = {u "¥á"encode ( "UTF-8") : "¾ËÆÄ", u "¥â".encode ( "UTF-8") : "º£Å¸", u "¥Ã".encode ( "UTF-8") : "gamma",}¿Í ¿©±â¼ µð·ºÅ丮 Æ®¸®°¡ ´ÙÀ½°ú °°Àº °Íó·³ º¸ÀÌ´Â °ÍÀÔ´Ï´Ù. testing twire_dir - y - y - first_dir_file ¦¡ refter_file = second_dir¦¢ - ¦¡ 1 ¨ù ¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡ second_file¦¦¦¡¦¡ À¯´Ï ÄÚµå ¦§¦¡¦¡ ¥á ¦§¦¡¦¡ ¥â ¦¦¦¡¦¡ ¥ãInstallationYou PyPI¿¡¼ fsstore¸¦ ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù ÇÌÀÌ ÀÚ½Ä ÀúÀå¼Ò¿¡¼ Á÷Á¢ fsstoreor ¼³Ä¡ : PIP ¼³Ä¡ ÀÚ½Ä + HTTPS : //github.com/startling/fsstore.gitProduct's ȨÆäÀÌÁö
FSStore. °ü·Ã ¼ÒÇÁÆ®¿þ¾î