fork download
  1. # -*- coding: utf-8 -*-
  2. import json
  3.  
  4. value = ["淫慾",
  5. "催眠耐性",
  6. "快感耐性",
  7. "發情耐性",
  8. "陷阱耐性",
  9. "暴露值"]
  10.  
  11. final = dict()
  12.  
  13. for v in value:
  14. final[v] = {
  15. "name": v,
  16. 'maxValue': 100,
  17. 'initialValue': 100,
  18. 'rechargeRate': 0,
  19. 'restRechargeMultiplier': 0,
  20. 'usageInstructions': ''
  21. }
  22.  
  23. print(json.dumps(final, indent=2))
Success #stdin #stdout 0.01s 7244KB
stdin
Standard input is empty
stdout
{
  "\u6deb\u617e": {
    "rechargeRate": 0, 
    "initialValue": 100, 
    "name": "\u6deb\u617e", 
    "usageInstructions": "", 
    "maxValue": 100, 
    "restRechargeMultiplier": 0
  }, 
  "\u9677\u9631\u8010\u6027": {
    "rechargeRate": 0, 
    "initialValue": 100, 
    "name": "\u9677\u9631\u8010\u6027", 
    "usageInstructions": "", 
    "maxValue": 100, 
    "restRechargeMultiplier": 0
  }, 
  "\u50ac\u7720\u8010\u6027": {
    "rechargeRate": 0, 
    "initialValue": 100, 
    "name": "\u50ac\u7720\u8010\u6027", 
    "usageInstructions": "", 
    "maxValue": 100, 
    "restRechargeMultiplier": 0
  }, 
  "\u5feb\u611f\u8010\u6027": {
    "rechargeRate": 0, 
    "initialValue": 100, 
    "name": "\u5feb\u611f\u8010\u6027", 
    "usageInstructions": "", 
    "maxValue": 100, 
    "restRechargeMultiplier": 0
  }, 
  "\u66b4\u9732\u503c": {
    "rechargeRate": 0, 
    "initialValue": 100, 
    "name": "\u66b4\u9732\u503c", 
    "usageInstructions": "", 
    "maxValue": 100, 
    "restRechargeMultiplier": 0
  }, 
  "\u767c\u60c5\u8010\u6027": {
    "rechargeRate": 0, 
    "initialValue": 100, 
    "name": "\u767c\u60c5\u8010\u6027", 
    "usageInstructions": "", 
    "maxValue": 100, 
    "restRechargeMultiplier": 0
  }
}