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()