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.
24 lines
408 B
Python
24 lines
408 B
Python
|
|
code = """
|
|
import time
|
|
import os
|
|
import http.client
|
|
|
|
|
|
print("hello world")
|
|
print(os.environ)
|
|
print(os.listdir())
|
|
|
|
conn = http.client.HTTPConnection("www.baidu.com")
|
|
conn.request("GET", "/")
|
|
print(conn.getresponse().read().decode('utf-8'))
|
|
"""
|
|
|
|
if __name__ == "__main__":
|
|
import requests
|
|
url = "http://code.quant.cm"
|
|
resp = requests.post(url, json={"code": code})
|
|
print(resp.json()["msg"])
|
|
|
|
|