待解决
已受理
待回复
完成
问题标题 : ujson 如何修改json文件内容
工单编号 : FBHWIAM13615058
工单类型 : 入门
提交时间 : 2022-08-16 11:21:29
工单状态 : 完成
联系方式 : 邮件
联系信息 : 297******2@qq.com

沟通记录

  • 问题描述:
    ujson 如何修改json文件内容
  • chic.ye : 已收到您的工单,我们将会尽快安排人手进行处理。
    2022-08-16 19:06:39
  • chic.ye :
    uos
    ql_fs
    
    ota_config = {
                : ,
                : }
    
    OTA_FLAG_CONFIG = ql_fs.path_exists(OTA_FLAG_CONFIG):
        ql_fs.touch(OTA_FLAG_CONFIG, ota_config)
    :
        ota_config = ql_fs.read_json(OTA_FLAG_CONFIG)
    (+ota_config[],  ,ota_config[])
    
    ota_config[] =  ota_config[] = ota_config[]+ql_fs.touch(OTA_FLAG_CONFIG, ota_config)
    ota_config = ql_fs.read_json(OTA_FLAG_CONFIG)
    (+ota_config[],  ,ota_config[])
    
    ota_config[] = ota_config[]+ql_fs.touch(OTA_FLAG_CONFIG, ota_config)
    ota_config = ql_fs.read_json(OTA_FLAG_CONFIG)
    (+ota_config[],  ,ota_config[])


    2022-08-16 19:07:27
  • chic.ye :

    File_Write_json_Chic.rar

    参考这个代码

    2022-08-16 19:08:17

待您评价