MsPage
  • HOME
  • self_driving_lidar
    • Nuvo6108GC Ubuntu Installation
    • Xavier environment installation
    • Velodyne 相關紀錄與議題
  • Study Note
    • Ubuntu
    • Tensor to TensorRT
    • C++
    • Qt5 & QtCreator
    • ROS
  • Python Study Note
    • Flask
  • CHEATSHEET
    • Git CheatSheet
    • Ros Launch Attribute
    • Vim Command (basic)
  • SAMPLE CODE
    • Rosbag Extractor in Python
Powered by GitBook
On this page

Was this helpful?

  1. Python Study Note

Flask

超基本架構

from flask import Flask
app = Flask(__name__) #__name__ represent now executing module

@app.route("/")
def home():
    return "Hello Flask"


@app.route("/test") #127.0.0.1 /test
def test():
    return "This is Test."

if __name__ == "__main__":
    app.run()
PreviousROSNextGit CheatSheet

Last updated 6 years ago

Was this helpful?