我在python中尝试了许多不同的教程,并经常遇到正在使用的@符号,但是我仍然不确定100%发生了什么。
本文档介绍如何使用属性: https://www.programiz.com/python-programming/property
@property
@temperature.setter
此文档显示了带有烧瓶的蓝图 http://flask.pocoo.org/docs/1.0/tutorial/views/
@bp.route('/register', methods=('GET', 'POST'))
这在pytest中使用: https://docs.pytest.org/en/latest/fixture.html
@pytest.fixture
@pytest.mark.usefixtures("cleandir", "anotherfixture")
此讨论提到了另一种类型 How do I correctly setup and teardown my pytest class with tests?
@classmethod
如果您能提供任何帮助,尤其是一个很好的教程,将不胜感激。
谢谢
标记