You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import requests
|
|
URL = "http://192.168.230.132:8011"
|
|
|
|
code = """
|
|
import time
|
|
|
|
print("hello world")
|
|
cnt = 0
|
|
while True:
|
|
print(cnt)
|
|
cnt += 1
|
|
time.sleep(0.1)
|
|
|
|
"""
|
|
|
|
resp = requests.post(URL, json={"code": code})
|
|
print(resp.json()["msg"])
|
|
|
|
|