1、脚本内容
import subprocess
import json
# 执行 curl 命令并获取输出
result = subprocess.run(["curl", "-s", "-X", "GET", "http://127.0.0.1:8091/walletsolidity/getnowblock"], stdout=subprocess.PIPE
1、脚本内容
import subprocess
import json
# 执行 curl 命令并获取输出
result = subprocess.run(["curl", "-s", "-X", "GET", "http://127.0.0.1:8091/walletsolidity/getnowblock"], stdout=subprocess.PIPE