摘要:
aiagent.app :chargpt 阅读全文
posted @ 2023-04-26 12:29
myrj
阅读(37)
评论(0)
推荐(0)
摘要:
def hi(): return "hi yasoob!" def doSomethingBeforeHi(func): print("I am doing some boring work before executing hi()") print(func()) doSomethingBefor 阅读全文
posted @ 2023-04-26 11:10
myrj
阅读(63)
评论(0)
推荐(0)
摘要:
装饰器(Decorators)是Python的一个重要部分。简单地说:他们是修改其他函数的功能的函数。他们有助于让我们的代码更简短,也更Pythonic(Python范儿)。大多数初学者不知道在哪儿使用它们,所以我将要分享下,哪些区域里装饰器可以让你的代码更简洁。 def hi(name="yaso 阅读全文
posted @ 2023-04-26 10:07
myrj
阅读(17)
评论(0)
推荐(0)