{"id":511,"date":"2019-08-17T09:57:21","date_gmt":"2019-08-17T01:57:21","guid":{"rendered":"https:\/\/www.linuxdevops.cn\/?p=511"},"modified":"2019-10-15T16:17:29","modified_gmt":"2019-10-15T08:17:29","slug":"3scqg","status":"publish","type":"post","link":"https:\/\/www.linuxdevops.cn\/2019\/08\/3scqg\/","title":{"rendered":"3.0 \u751f\u6210\u5668 Generators"},"content":{"rendered":"\n

<\/h2>\n\n\n\n

\u751f\u6210\u5668\uff08Generators\uff09<\/h1>\n\n\n\n

\u9996\u5148\u6211\u4eec\u8981\u7406\u89e3\u8fed\u4ee3\u5668(iterators)\u3002\u6839\u636e\u7ef4\u57fa\u767e\u79d1\uff0c\u8fed\u4ee3\u5668\u662f\u4e00\u4e2a\u8ba9\u7a0b\u5e8f\u5458\u53ef\u4ee5\u904d\u5386\u4e00\u4e2a\u5bb9\u5668\uff08\u7279\u522b\u662f\u5217\u8868\uff09\u7684\u5bf9\u8c61\u3002\u7136\u800c\uff0c\u4e00\u4e2a\u8fed\u4ee3\u5668\u5728\u904d\u5386\u5e76\u8bfb\u53d6\u4e00\u4e2a\u5bb9\u5668\u7684\u6570\u636e\u5143\u7d20\u65f6\uff0c\u5e76\u4e0d\u4f1a\u6267\u884c\u4e00\u4e2a\u8fed\u4ee3\u3002\u4f60\u53ef\u80fd\u6709\u70b9\u6655\u4e86\uff0c\u90a3\u6211\u4eec\u6765\u4e2a\u6162\u52a8\u4f5c\u3002\u6362\u53e5\u8bdd\u8bf4\u8fd9\u91cc\u6709\u4e09\u4e2a\u90e8\u5206\uff1a<\/p>\n\n\n\n