-
ninasam233说:
韭菜,油麦菜,山药 可溶性膳食纤维含量,100g里面详细数值,分别列出不可溶性膳食纤维和 可溶性膳食纤维数值
韭菜:
不可溶性膳食纤维:3.3克
可溶性膳食纤维:1.2克油麦菜:
不可溶性膳食纤维:5.5克
可溶性膳食纤维:2.2克山药:
不可溶性膳食纤维:5.5克
可溶性膳食纤维:2.0克 -
malaohu说:
def Try2Json(self, jsn_str): result = {} try: result = json.loads(jsn_str) except e: print(e) return False, None return True, result ··· 请优化一下上面的python代码
def Try2Json(self, jsn_str):
result = {}
try:
result = json.loads(jsn_str)
except Exception as e:
print(e)
return False, None
else:
return True, result -
-
ivan说:
从下列json格式中写出可以匹配到a.189.cn的正则{
"v": "2",
"ps": " United States",
"add": "64.31.55.208",
"port": "80",
"id": "a25881f3-967f-3265-qqqq-9e66857b0123",
"aid": "0",
"scy": "auto",
"net": "ws",
"type": "none",
"host": "a.189.cn",
"path": "/usv12nz",
"tls": "",
"sni": ""
}/a.189.cn/
-
-
ivan说:
从下列json格式中写出可以匹配到host“:”后边文字的正则表达式{
"v": "2",
"ps": " United States",
"add": "64.31.55.208",
"port": "80",
"id": "a25881f3-967f-3265-qqqq-9e66857b0123",
"aid": "0",
"scy": "auto",
"net": "ws",
"type": "none",
"host": "a.189.cn",
"path": "/usv12nz",
"tls": "",
"sni": ""
}host:"(.+)",