likebeta / twisted-intro-cn Goto Github PK
View Code? Open in Web Editor NEWTwisted与异步编程入门
Home Page: https://twisted-intro-cn.9527.eu.org
Twisted与异步编程入门
Home Page: https://twisted-intro-cn.9527.eu.org
p09.md#deferred模拟器[这部分未翻译]
twisted-deferred/deferred-simulator.py 这段代码根本就不需要研究明白,这是作者写的一个小工具程序,你只需要把程序跑起来,然后根据提示输入就可以了,然后程序会在终端上打印出一个如p09.md#图18 那样的deferred激活路线。 所以在你的翻译里请不要让读者去研究那段代码,很难读懂且浪费时间。
但你会发现,读其中的代码twisted-deferred/deferred-simulator.py ,可以更好的理解deferred。
你这完全是在给读者挖坑。
Each pair should be on a single line and you can abbreviate
return/fail/passthru as r/f/p.
Examples:
r good f bad # callback returns 'good'
# and errback raises Exception('bad')
f googly p # callback raises Exception('googly')
# and errback passes its failure along
Enter a blank line when you are done, and a diagram of the deferred
will be printed next to the firing patterns for both the callback()
and errback() methods. In the diagram,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.