您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

14 行
300 B

  1. import http.server
  2. from discord_webhook import DiscordWebhook
  3. PORT = 80
  4. server_address = ("", PORT)
  5. server = http.server.HTTPServer
  6. handler = http.server.CGIHTTPRequestHandler
  7. handler.cgi_directories = ["/"]
  8. print("Used port :", PORT)
  9. httpd = server(server_address, handler)
  10. httpd.serve_forever()