Signed-off-by: fong <wuwenfengmi@outlook.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import json
|
||||
import re
|
||||
f=open("database/switch_1688182997.json",'r',encoding='utf8')
|
||||
f=open("database/ps4_1688182999.json",'r',encoding='utf8')
|
||||
|
||||
|
||||
jsdata=json.loads(f.read())
|
||||
@@ -21,7 +21,7 @@ for i in jsdata['item_list']:
|
||||
print()
|
||||
js={}
|
||||
js['tempname']=i['item_name']
|
||||
js['type']="NS"
|
||||
js['type']="ps4"
|
||||
js['SUK']=i['item_no']
|
||||
js['salestart']=i['salestart']
|
||||
|
||||
@@ -36,6 +36,6 @@ for i in jsdata['item_list']:
|
||||
|
||||
|
||||
jsdump=json.dumps(js2,ensure_ascii=False, indent=4, separators=(',', ': '))
|
||||
f=open("database/NS_temp.json","w",encoding='utf8')
|
||||
f=open("database/ps4_temp.json","w",encoding='utf8')
|
||||
f.write(jsdump)
|
||||
f.close
|
||||
|
||||
Reference in New Issue
Block a user