app.conf
[/favicon.ico]
tools.staticfile.on: True
tools.staticfile.filename: "/path/to/myfavicon.ico"
 
test.py
import cherrypy
 
class HelloWorld(object):
   @cherrypy.expose
   def index(self):
       return "Hello World!"
 
if __name__ == '__main__':
    cherrypy.quickstart(HelloWorld(), '/', "app.conf") 

 

 

 

 

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-10-21
  • 2021-05-29
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
猜你喜欢
  • 2021-11-01
  • 2021-10-07
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
相关资源
相似解决方案