fork download
  1. import cherrypy
  2.  
  3. class HelloWorld(object):
  4. def index(self):
  5. return "Hello World!"
  6. index.exposed = True
  7.  
  8. cherrypy.quickstart(HelloWorld())
Runtime error #stdin #stdout #stderr 0.13s 23324KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
ModuleNotFoundError: No module named 'cherrypy'