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. 本能,直觉;天性
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. 本能,直觉;天性