Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想生成一个xml文件。我写了一个 xml_generator 方法。当 /xxx url 命中时,我调用这个生成器函数。我应该如何返回这个因为返回生成器函数的实例会产生错误。
如果您的意思是要返回一个函数,那么当您实际尝试返回该函数的结果时,它将是错误的。即:my_function而不是my_function().
my_function
my_function()