如果字符而不是没有,删除字符字符代替。
If chars is given and not None, remove characters in chars instead.
所以,虽然您可以使用键盘删除字符,但还是要用图形按钮添加它们。
So, while you can use the keyboard to delete characters, use the graphical buttons to add them.
如果彻底删除字符数据过于极端,希望至少保留每个节点的长度,可以使用清单1的一个变体。
If complete removal of the character data is too extreme and you want to preserve at least the length of each node, a variation on Listing 1 might be useful.
在处理数据时,一个规范化字符串将告诉XML处理器删除字符串两边的不必要空格。
A normalized string simply tells the XML processor to remove any unnecessary extra white space surrounding the string when processing the data.
你也可以认为这对于用户来说是一个陷阱,因为他可以移动光标并且无意中用退格键删除字符,而这些字符不是最后输入的。
You could also see it as a trap for users because they can move the cursor and inadvertently backspace away characters that were not the last ones keyed in.
strip([option[,char]])删除字符(默认为空格)在头部("L")、尾部("T")或头尾部("B" —— 默认值)的出现 " 12345 ".strip返回 "12345"
string.strip([option[,char]]) Removes leading("L"), trailing("T"), or both("B" – default) occurrences of char (default spaces) " 12345 ".strip returns "12345"
例如,一位客户在数据失败时将一个任务路由到管理员,请求管理员检查固定宽度的数据提要,以便找到错误的字符,修复或删除它们。
For example, one customer routes a task to an administrator to look at fixed-width data feeds when the data fails so that they can find the errant characters and fix or delete them.
缩小是从代码,以减少其大小,从而提高加载时间删除不必要的字符的做法。
Minification is the practice of removing unnecessary characters from code to reduce its size thereby improving load times.
在解析时,引号导致将其中包括的所有字符视为数据,而不会潜在地将其视为标记,并且始终会在将数据添加到树之前删除引号。
When parsing, quotes cause all enclosed characters to be treated as data and not potentially as markup, and the quotes are always stripped before data is added to the tree.
在这种情况下,使用选项FILTER_SANITIZE_STRING,该选项将获取输入、删除所有HTML标记并选择性地编码或删除特定字符。
In this case, you use the option FILTER_SANITIZE_STRING, which takes input and removes any HTML tags and optionally encodes or removes special characters.
把单词x中的一个字符删除。
第三个示例使用了-d选项 (delete),它从输出中彻底删除了指定的字符。
The third example, with the -d option (delete), removes the specified characters completely from the output.
在此,Back按钮应该删除输入到清单8中定义的文本字段中的上一个字符。
In this case, the Back button should remove the last character entered into the text field defined in Listing 8.
这种方法删除代码中所有不必要的字符,比如制表符(tab)、新行和空格。
Minification removes from the code all the unnecessary characters, such as tabs, newlines, and Spaces.
接下来的if 语句将删除后置的 “任何字符部分”以生成 (s)(\w)+(m)(\w)+(l)。
The next if statement will remove the trailing "any word character section" to produce (s)(\w)+(m)(\w)+(l).
Release4巧妙地修改了这项功能,用随机字符覆盖删除数据,使其不能恢复。
In Release 4, this functionality was changed subtly so that the deleted data was overwritten with random characters to make it irretrievable.
通过使用s命令并替换一个空替换字符,您可以删除尾随空格。
You can remove trailing blanks from a file by using the s command and substituting a null replacement.
内部foreach循环迭代哈希条目,删除值最后的后缀空格字符。
The inner foreach loop iterates over the hash entries and strips trailing space characters from the values.
此外,我们必须递归处理MySQL结果,删除非法字符以及逐位构建我们的XML文档。
In addition, we have to work through our MySQL results recursively, removing illegal characters and building our XML document bit by bit.
有些无效的路径(例如,含有无效字符目标项目之外的路径)可能会被删除,与之相反考虑的是默认的路径。
Any invalid paths (for example, a path outside of the target project, with invalid characters) would be discarded, and the default path would be considered, instead.
删除不是空格的非首字母字符(空格将搞乱省略符号,但是它是很好的起点)
Strip out nonalpha characters that are not whitespace (which messes up apostrophes, but it's a good place to start)
保留字符内容中的所有空白(不包括换行规范化过程中删除的字符)。
All whitespace in character content is retained (excluding characters removed during line feed normalization).
此表达式也会删除所有空字符和过量的空白。
This expression also removes all null characters and excess whitespace.
不过它通过删除不同的关键字来显示使用此函数的某些可能性并且返回字符串的总字数。
It shows some potential for using the function but by removing the distinct keyword, it returns the total word count of a string.
我们还可以使用该命令替换给定行号的缓冲区中的文本,或者删除当前行中第一个出现的字符串。
We can also replace the text in the buffer at a given line number or remove the first occurrence of a string in the current line, using this utility.
为了让名字更加清晰,如果您要更改JAR文件名以删除特定版本的信息,最好将库定义的版本字符串变成有意义的名字。
For clarity, especially if you do change the JAR file names to remove version-specific information, it would be wise to set the version string in the library definition to something meaningful.
在检查dnt字符串后,如果需要在dnt属性文件中添加或删除条目,可以直接在dnt属性文件中做出必要的更改。
If you need to add or remove entries in DNT properties files after you review the DNT strings, you can make necessary changes directly in the DNT properties files.
首先,需要删除输入字符串中的空格。
注释字符删除之后,该属性将如清单10所示。
With the comment character removed, the property would look similar to what is shown in Listing 10.
注释字符删除之后,该属性将如清单10所示。
With the comment character removed, the property would look similar to what is shown in Listing 10.
应用推荐