abbr. ESC
misc. switch character
以带有特别转换字符(conversion character) 的格式化字符串,后接% 运算子,再接一个tuple 作为参数,就能把tuple 里的数据填进格式化字符串里去。
基于24个网页-相关网页
您将学习如何显示文本、执行排序、计算单词和行数、转换字符,以及其他任务。
You will learn how to display text, sort it, count words and lines, and translate characters, among other tasks.
在这类情况下,您需要深入研究如何使用Samba服务器上的特定代码页转换字符代码。
In such instances, you need to delve a bit deeper into how character codes are converted using specific code pages on the Samba server.
除了一个监听器将输入字符串转换成大写字母之外,监听器的代码完全相同。
With the exception that one of the listeners converts the input string to uppercase, the code for the listeners is exactly the same.
That means starting at the first one, I'm going to do something to it. And what am I'm going to do? I'm going to take that character, convert it back into an integer, and add it into some digits. And I've done a little short hand here, which is I should have said some digits is equal to some digits plus this.
这意味着从第一个字符开始,我要对他们进行一些操作,我要去做什么呢?我要取得这个字符,然后把它转换为整数,然后加到某些数上面去,我在这里用了一些缩写,我本来应该写一个数字等于这个数字。
s2 So, I'm passing in the first character in s2, I'm making it uppercase and then I'm putting it back so casually speaking this is just capitalizing the first letter of whatever word the user typed in to s2.
那么,我把第一个字符传递给,我把它转换成大写的,然后存下来,简单说,这就是把用户输入s2中的单词,的第一个字母转换成大写的。
But if we know that 65 is the int that maps to the capital letter "A," we've already seen verbally that you can convert letters to numbers and numbers to letters, and so here's the syntax with which we'll soon be doing that.
如果我们知道65是个整型数,对应的是,大写字母“A“,我们已经口头地说明,我们可以把数字转换为字符,字符转化为数字,所以这里就是我们将要学习的一种语法。
应用推荐