您将使用POST而不是GET,因为您希望避免任何因查询字符串长度过长和字符串转义而引起的问题。
You use POST instead of GET because you want to avoid any issues with the query string length being exceeded or escaping of strings.
姓名和电话号码被连接为一个字符串,然后分割为含两个字符串的数组。
The name and the phone number are concatenated into a single string and then split into an array of two strings.
这种形式的字符串截断非常简便,只需用冒号分开来指定起始字符和子字符串长度。
This form of string chopping can come in quite handy; simply specify the character to start from and the length of the substring, all separated by colons.
尽管不难找到拆分这些响应字符串的方法,但客户机将不得不根据分号、等号、竖线和与符号解析并拆分这些字符串。
Even though it's not too hard to figure out how to break up these response strings, a client will have to parse and split the string up based on the semicolons, equal signs, pipes, and ampersands.
使用单引号、双引号和三引号语法创建的字符串仍然是字符串对象。
The strings I've been creating using the single, double, or triple quotation mark syntax are still string objects.
字符串校正有可能很复杂,因为必须按照已知的校对规则来比较两个字符串,该规则毫无疑问是特定于脚本和特定于语言的。
String collation can prove tricky because comparing two strings has to happen under known collation rules, which are invariably script - and language-specific.
连接操作是一个顺序的连接多个数据片段的过程,通常是连接字符串和非字符串数据(绝大多数是变量或其它字符)。
Concatenation is the process to sequentially join multiple pieces of data, usually literal strings with non-string-literal data (most commonly, variables or other literals).
相反,应该将字符串与字符串值'true '和'false '比较。
Instead, compare strings to the string values' true 'and' false '.
这种方法使用对一个字符串计算得到的摘要(digest)值,该字符串由两个文本值和密码组成。
This method USES a digest value computed over a string made up of two other text values combined with the password.
如果源字符串至少和目标一样长,那么函数strncpy(3)还不会使用NUL 来结束字符串;这可能会在以后导致严重破坏。
The function strncpy(3) also doesn't NUL-terminate its destination if the source string is at least as long as the destination; this can cause havoc later.
从技术角度而言,正则表达式是表示某种模式的字符串(也就是说,由字母、数字和符号组成的字符序列),用于定义零或更长的字符串。
Technically speaking, a regular expression is a string (that is, a sequence of characters composed of letters, Numbers, and symbols) that represents a pattern defining zero or more strings.
sequence (final)得到字符串和最终字符串之间的字符序列(字符串和最终字符串都必须是1个字符组成的字符串)“0 ” .sequence(“9 ”)返回“ 0123456789 ”。
String.sequence (final) Gets the sequence of character between string and final (both must be 1-character strings) "0".sequence (" 9 ") returns "0123456789".
这么做会返回一个缓冲了的文本文件;read和readline会返回字符串(请注意,Python3内的所有字符串都是unicode)。
Doing so returns a buffered text file; read and readline return strings. (Remember that all strings in Python 3 are unicode.)
对更复杂的过滤使用正则表达式(过滤字符串的开头和末尾总是添加一个星号 *,因此没有必要为简单的字符串添加通配符)。
Use regular expressions for more complex filtering (an asterisk (*) is always added to the beginning and end of the filter string, so there's no need to add wildcards for simple strings).
它然后将消息主体设置为一个字符串,该字符串的用户和消息数据被编码为post格式。
It then sets the body of the message to a string that has the user and message data encoded in POST format.
字符串分析模型字符串就是一些语法,能够对字符串和序列有很详尽的理解,字符串可能在执行过程的任何点发挥作用。
The string analysis model strings are grammars, enabling a very detailed understanding of the characters and sequences that a string might hold at any point in the execution flow.
如果当前字母的下标和字符串的长度相等,那么这个变量是一个空字符串。
If the index of the current letter is equal to the length of the string, this variable is an empty string.
通过使用常量字符串,可以避免分配内存、复制字符串和编码转换过程。
By using a constant string, you avoid allocating memory, copying the string, and the transcoding process.
可以设置这些属性以惟一识别过滤器、指定查询字符串和指定解析查询字符串的查询语言。
These properties can be set to uniquely identify the filter, specify a query string, and specify the query language that parses the query string.
在这种情况下,剖析该文本字符串就会非常简单直接,这是因为这些部件都用“[”和“]”封装,并且其数值就是等号后面的最后一个字符串。
In this case, parsing the text string is quite straightforward because the parts are enclosed by "[" and"] "and the value is the last string after the equals sign.
使用标准的C字符串函数或您习惯使用的字符串库对通用名和主机名进行比较。
Using the standard C string functions or your favorite string library, compare the common name and the host name.
根据脚本编写的方式,生成的HTTP响应可能非常简单,比如只包含几个标准头部和一个文本字符串,该字符串包含给定符号的当前价格。
Depending on how the script is written, the resulting HTTP response might be as simple as standard headers and a text string containing the current price for the given ticker symbol.
第一,在创建字符串时,您可以混合使用单引号和双引号,只要字符串在开始位置和结束位置使用同一类型的引号。
First, you can mix single and double quotation marks when creating a string, as long as the string USES the same type of quotation mark at the beginning and end.
组合的结果是将日志级别和用户指定的格式字符串包含在一个字符串中。
The result is a single string that incorporates the log level and user-specified format string as a single string.
二次出现的字符串由一个指向前一字符串的指针(以对的形式——距离和长度)代替。
The second occurrence of a string is replaced by a pointer (in the form of a pair — distance and length) to the previous string.
不再需要将日期和时间作为字符串来处理,提取部分字符串作为单个数字或者月份的名称。
No longer do you need to handle dates and times as strings and pull apart the strings to get individual Numbers or month names.
至此,已经有了一个标记数据库和一个包含英文字符串和翻译后的字符串的词汇表。
Now, you have a tag database and a glossary that contains the English strings and the translated strings.
而在属性文件中,可翻译字符串和不可翻译字符串分放在不同的文件中。
In the properties files, translatable strings and untranslatable strings are separated into different files.
这些字段包含查询字符串和HTTP头部的值,并解析查询字符串。
These fields contain the query string and the values of the HTTP headers as well as parse the query string.
该应用程序使用了一些字符串方法、一些正则表达式和一些主要由正则表达式和字符串匹配所驱动的程序逻辑。
This application USES some string methods, some regular expressions, and some program logic driven mostly by regular expressions and string matches.
应用推荐