`
sillycat
  • 浏览: 2486621 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

English-015 DiveIntoPython

阅读更多
English-015 DiveIntoPython

1.Let's do it the quick-and-dirty way first, and then see how you can do better.
quick-and-dirty ['kwikən'də:ti]  adj. 应急的

2. then you're being inefficient, and you're being rude
inefficient [,ini'fiʃənt]  adj. 无效率的,效率低的;无能的
rude [ru:d]   adj. 粗鲁的;无礼的;狂暴的;未开化的

3.Let's talk about some of the basic features of HTTP.
feature ['fi:tʃə]   n. 容貌;特色,特征;特写或专题节目

4.Status code 301 is a permanent redirect; it means “oops, that got moved permanently”
permanent ['pə:mənənt]  adj. 永久的,永恒的;不变的

5.Rather than dealing with HTTP requests and XML documents directly, SOAP allows you to simulate calling functions that return native data types.
simulate ['simjuleit]  vt. 模仿;假装;冒充 adj. 模仿的;假装的

6.As you will see, the illusion is almost perfect; you can “call” a function through a SOAP library, with the standard Python calling syntax, and the function appears to return Python objects and values.
illusion [i'lju:ʒən]  n. 幻觉,错觉;错误的观念或信仰

7.The SOAPProxy class proxies local method calls and transparently turns then into invocations of remote SOAP methods.
transparent [træns'pærənt, -'pεə-, trænz-, trɑ:n-]  adj. 透明的;显然的;易懂的;坦率的
invocation [,invəu'keiʃən]  n.调用

8.A WSDL file is just that: a file. More specifically, it's an XML file.
specifically [spi'sifikəli]   adv. 明确地;特别地

9.I begin to introspect the real me.
introspect [,intrəu'spekt]  vt. 对…进行自省

10.In the next few chapters, you're going to write, debug, and optimize a set of utility functions to convert to and from Roman numerals.
utility [ju:'tiləti]   n. 效用;实用;功用;公共设施 adj. 有多种用途的;通用的;实用的
optimize ['ɔptimaiz]   vt. 使最优化,使完善

11.Unit testing is not a replacement for higher-level functional or system testing, but it is important in all phases of development:
phase [feiz]  n. 相;位相;阶段

12.A test case should be able to run in isolation, separate from any other test cases (even if they test the same functions). Each test case is an island.
isolation ['aisə'leiʃən]  n. 隔离;孤立;离析;[物]绝缘

13.The following is a complete Python program that acts as a cheap and simple regression testing framework. It takes unit tests that you've written for individual modules, collects them all into one big test suite, and runs them all at once.
regression [ri'ɡreʃən]  n. 逆行;退化;回归;复原

14.I don't want to release non-working examples any more than you want to download them and sit around scratching your head and yelling at your monitor and wondering why they don't work.
scratch [skrætʃ]  vt. 抓;刮;挖出;乱涂
yell [jel]  vi. 大叫,叫喊 vt. 喊叫着说

15.Got all that? It's not as difficult as it sounds.

16.At best, it simply wastes time; at worst, it introduces obscure bugs.
obscure [əb'skjuə, ɔb-] vt. 遮掩;使变暗;使难理解

17.So you're looking at words, which at least in English are strings of characters. And you have rules that say you need to find different combinations of characters, and then do different things to them. This sounds like a job for regular expressions.
combination [,kɔmbi'neiʃən]  n. 结合;化合;联合;组合

18.Now you're going to add a level of abstraction.
abstraction [æb'strækʃən]  n. 抽象;抽象概念;提取;空想;心不在焉

19.Let's factor out the duplication in the code so that defining new rules can be easier.
factor out 提出撰因子;析出因数   factor ['fæktə]  vt. 把…作为因素计入;代理经营;把…分解成
duplication [,dju:pli'keiʃən]  n. 复制;副本;成倍

20.Performance tuning is a many-splendored thing. Just because Python is an interpreted language doesn't mean you shouldn't worry about code optimization. But don't worry about it too much.
performance [pə'fɔ:məns]  n. 性能;表演;执行;绩效
tuning ['tju:niŋ]   n. [无]调谐;调音,起弦;协调一致;起音,定音
splendor ['splendə]  n.[美国英语] = splendour  splendour ['splendə]  n. 显赫(等于splendor);光彩壮丽
optimization [,ɔptimai'zeiʃən, -mi'z-]  n. 最佳化,最优化

21.There are so many pitfalls involved in optimizing your code, it's hard to know where to start.
pitfall ['pitfɔ:l]  n. 缺陷;陷阱,圈套;诱惑
optimize ['ɔptimaiz]  vt. 使最优化,使完善

22.Timing short pieces of code is incredibly complex. How much processor time is your computer devoting to running this code?
devote [di'vəut]  vt. 奉献;致力于

23.If you answered “regular expressions”, go sit in the corner and contemplate your bad instincts. Regular expressions are almost never the right answer; they should be avoided whenever possible. Not only for performance reasons, but simply because they're difficult to debug and maintain.
contemplate ['kɔntəm,pleit] vt. 沉思;注视;思忖;预期
instinct ['instiŋkt] n. 本能,直觉;天性

分享到:
评论

相关推荐

    Dive into python (英文)

    Dive into python, English version

    Test-Driven Development with Python [2017]

    Dive into the TDD workflow, including the unit test/code cycle and refactoring Use unit tests for classes and functions, and functional tests for user interactions within the browser Learn when and ...

    MQTT Essentials - A Lightweight IoT Protocol

    Dive deep into one of IoT's extremely lightweight machines to enable connectivity protocol with some real-world examples Learn to take advantage of the features included in MQTT for IoT and Machine-to...

    Large Scale Machine Learning with Python

    Dive into scalable machine learning and the three forms of scalability. Speed up algorithms that can be used on a desktop computer with tips on parallelization and memory allocation. Get to grips with...

    Python Data Analysis Cookbook

    In this book, you will dive deeper into recipes on spectral analysis, smoothing, and bootstrapping methods. Moving on, you will learn to rank stocks and check market efficiency, then work with metrics...

    Python Deep Learning

    Whether you want to dive deeper into Deep Learning, or want to investigate how to get more out of this powerful technology, you’ll find everything inside. What you will learn Get a practical deep ...

    LargeScaleMachineLearningwithPython.pdf

    Large Scale Machine Learning with Python [PDF + EPUB + CODE] Packt Publishing | August 4, 2016 | English | 439 pages Large Python machine learning projects involve new problems associated with ...

    Hands-On Machine Learning with Scikit-Learn and TensorFlow [EPUB]

    decision trees, random forests, and ensemble methods Use the TensorFlow library to build and train neural nets Dive into neural net architectures, including convolutional nets, recurrent nets, and ...

    Hands-On Machine Learning with Scikit-Learn and TensorFlow [Kindle Edition]

    Dive into neural net architectures, including convolutional nets, recurrent nets, and deep reinforcement learning Learn techniques for training and scaling deep neural nets Apply practical code ...

    Machine.Learning.in.Python

    The chapters on penalized linear regression and ensemble methods dive deep into each of the algorithms, and you can use the sample code in the book to develop your own data analysis solutions. ...

    Machine Learning in Python 无水印pdf 0分

    The chapters on penalized linear regression and ensemble methods dive deep into each of the algorithms, and you can use the sample code in the book to develop your own data analysis solutions....

    Python Machine Learning By Example [2017].azw3电子书下载

    Dive deep into the world of analytics to predict situations correctly Implement machine learning classification and regression algorithms from scratch in Python Be amazed to see the algorithms in ...

    Advanced Analytics with Spark: Patterns for Learning from Data at Scale

    You’ll start with an introduction to Spark and its ecosystem, and then dive into patterns that apply common techniques—including classification, clustering, collaborative filtering, and anomaly ...

    Building Recommendation Engines

    Dive into the various techniques of recommender systems such as collaborative, content-based, and cross-recommendations Create efficient decision-making systems that will ease your work Familiarize ...

    Raspberry Pi Zero Cookbook

    Deep dive into the components of the small yet powerful Raspberry Pi Zero Get into grips with integrating various hardware, programming, and networking concepts with the so-called “cheapest computer...

    Packt.Django.Project.Blueprints.2016

    Dive deep into Django forms and how they work internally About the Author Asad Jibran Ahmed is an experienced programmer who has worked mostly with Django-based web applications for the past 5 years. ...

    React and React Native [Kindle Edition]

    Dive deep into each platform, from routing in React to creating native mobile applications that can run offline Use Facebook's Relay, React and GraphQL technologies, to create a unified architecture ...

Global site tag (gtag.js) - Google Analytics