What does the @ symbol mean ?
Posted: Sat Oct 31, 2020 9:57 am
I new to the world of python programming and trying to set up a web server and going to use the picweb library for this task.
How I learn is take the program apart line by line and understand what each line does , change things and see what happens.
In this bit of code :-
I'm trying to work out what this part of the code does @app.route("/temp") or what the @ does.
Thank in advanced Peter A
How I learn is take the program apart line by line and understand what each line does , change things and see what happens.
In this bit of code :-
Code: Select all
@app.route("/temp")
def html(req, resp):
hw_sensor.measure()
t = hw_sensor.temperature()
Thank in advanced Peter A