持续更新。
--------------------C++篇------------------------分布式
auto results = from(ids) | get<0>() | as<vector>();
本质上和e.g.Pyspark的分布式计算的底层思想是一致的。函数
--------------------Python篇-----------------------spa
subprocess:
Popen, e.g.rest
process = Popen(['cat', 'test.py'], stdout=PIPE, stderr=PIPE)
至关于执行了cat test.py这个命令
而后能够用communicate函数来read,e.g. stdout, stderr = process.communicate(); print stdoutcode
yield & generators
e.g.ip
def foo(): for i in range(0,100): yield i*i generator = foo() for i in generator: print(i)