服务功能更新
parent
dc3fc432b5
commit
5dd19a184b
@ -1,19 +1,16 @@
|
||||
import requests
|
||||
URL = "http://192.168.230.132:8011"
|
||||
|
||||
code = """
|
||||
import time
|
||||
import os
|
||||
|
||||
print("hello world")
|
||||
cnt = 0
|
||||
while True:
|
||||
print(cnt)
|
||||
cnt += 1
|
||||
time.sleep(0.1)
|
||||
|
||||
print(os.environ)
|
||||
"""
|
||||
|
||||
resp = requests.post(URL, json={"code": code})
|
||||
if __name__ == "__main__":
|
||||
import requests
|
||||
url = "http://127.0.0.1:8011"
|
||||
resp = requests.post(url, json={"code": code})
|
||||
print(resp.json()["msg"])
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue