文档字符串:一个在函数定义的顶部的字符串,讲解函数的交互界面。
A string that appears at the top of a function definition to document the function's interface.
有些文档字符串工具可以在线处理或打印文档,或让用户交互的浏览代码;
There are tools which use docstrings to automatically produce online or printed documentation, or to let the user interactively browse through code;
如果文档字符串有多行,第二行应该空出来,与接下来的详细描述明确分隔。
If there are more lines in the documentation string, the second line should be blank, visually separating the summary from the rest of the description.
我的 .p_para()在其文档字符串中应该只包含一组语法规则(没有代码)。
My .p_para() should contain only a set of grammar rules in its docstring (no code).
首先,具体类所完成的大部分工作都在方法的文档字符串(docstring)中指定。
First, much of the work done by a concrete class is specified in the docstrings of methods.
整个insert语句被从客户机代码页转换到数据库代码页,然后XMLPARSE文档字符串被转换到utf - 8,以便解析为XML。
The whole INSERT statement is converted from the client code page to the database code page, and then the XMLPARSE document string is converted to UTF-8 for parsing into XML.
由doctest 处理的文档字符串可能会在其内部包含回溯(traceback),但是在特别的情况下,更好的方法是使用unittest 。
The docstrings processed by doctest can contain tracebacks within them, but a better approach to special cases is to utilize unittest.
函数体的第一行可以是一个字符串值,这个字符串是该函数的(文档字符串(documentationstring)) ,也可称作docstring 。
The first statement of the function body can optionally be a string literal; this string literal is the function's documentation string, or docstring.
这里我们需要将选中的文本包装到选定的样式标签中,并使用这个新的字符串替换文档里选中的文本。
Here, we need to wrap the selected text into the selected style tags and replace the selected text in the document with this new string.
您可以看到,这些文档可以存储包括字符串、整数、浮点数、日期、对象、数组等的各种数据类型。
As you can see, these documents can store various data types include strings, integers, floats, dates, objects, arrays and more.
所以在使用了命名空间的文档中,您几乎总是需要进行两次字符串比较,如清单3所示。
So in namespaced documents, you almost always need to perform two string comparisons, as shown in Listing 3.
以清单9为例,它创建一个字符文档集合,每个集合都包含字符的字符串表示形式及其关联的ASCII代码。
Take Listing 9, which creates a collection of character documents, each containing the string representation of the character and its associated ASCII code.
我们发现涉及大量行的查询的性能差异比较大,比如对所有20,000个XML文档进行全表扫描并对每个文档比较字符串。
We found a bigger difference for queries that touch a large number of rows, such as a table scan over all 20,000 XML documents with string comparison on every document.
正如您所预期的,验证作为字符串提供的XML文档只需要很少的额外编程工作。
As you might expect, validating XML documents that are provided as character strings requires little extra programming effort.
消息可以是简单的字符串或甚至使用xml或json编码的文档。
Messages could be simple strings or even documents encoded using XML or JSON.
服务方法的有效负载,用XML表示,实际上是包含XML文档的字符串。
A service method's payload, which is usually expressed in XML, is effectively a string containing an XML document.
清单2示范了使用DOM创建XML字符串和XML文档并设置格式以便查看。
Listing 2 illustrates the use of the DOM to create an XML string and XML document, formatted for your viewing pleasure.
您可以在Python文档中找到字符串方法的完整而详细的解释。
You can find a full and detailed explanation of the string methods in the Python documentation.
xml解析器对任何写入到Unicode字符串和字符数组中的文档进行转换。
The XML parser converts whatever the document is written in to Unicode strings and char arrays.
SimpleXML最适合简单的、类似记录的数据,比如从同一个应用程序其他部分传递来的XML文档或字符串。
SimpleXML works best with uncomplicated, record-like data, such as XML passed as a document or string from another internal part of the same application.
此Gadget本质上等效于桌面搜索,它在您的所有本地文档中搜索您指定的任何字符串的实例。
This gadget is essentially equivalent to a desktop search tool that searches for the occurrences of any string you specify in all of your local documents.
另外一种情况是,不用解析文档,而将其作为字符串或字符大对象(Character Large Object,CLOB)存储在数据库中。
Another case is when you want to store a document in a database as a string or a Character Large Object (CLOB) without parsing it.
此后,可以将结果保存在一个以xml格式表示这个LotusForms文档的字符串内并将其传递回servlet。
After that, you can hold the results in a string that presents the Lotus Forms document in XML format and passes it back to the servlet.
其余的变量定义支持Notes文档操作和一般字符串变量。
The rest of the variable definitions are in support of Notes document operations and general string variables.
首先,对于快速的人可读性、粗略的字数统计等而言,用字符串扫描.DOC文档通常是足够了。
First, for quick human readability, rough word counts, and so on, it's often enough to scan a.doc document with strings. A command such as.
要了解关于连接字符串的完整细节,请参阅Derby文档。
You will need to refer to the Derby documentation for full details about the connection string.
Selection对象包含text属性,该属性用于将一个字符字符串传递到当前文档。
The Selection object includes the Text property, which is used to pass a string of characters to the document at the current range.
XSLT 2.0增加了新的unparsed-text 函数,可以将文件或者其他文档形式作为字符串读入。
XSLT 2.0 adds a new function called unparsed-text that reads a file or other form of a document as a string.
此脚本统计当前数据库中所有文档的数量,值为字符串。
This script gets a count of all the documents in the current database as a string. Modify the script so that it looks like this
Ruby创建XML文档特别简单,只需要转化成字符串并发送给DB2。
Ruby makes it particularly easy to create XML documents, and all you have to do is turn those into strings to send to DB2.
应用推荐