之前無意間發現可在 list comprehension 裡面使用 yield 和 yield from , 這是一個 tricky 的用法 :P. Example¶. list : >>> list((yield x) ...
確定! 回上一頁