In this article, we will go for capitalizing the characters i.e. conversion from lowercase to uppercase without using any function. This article is based on the concept that how inbuilt function perform this task for us?
在本文中,我们将大写字符,即不使用任何功能 将字符 从小写转换为大写 。 本文基于以下概念:内置函数如何为我们执行此任务?
So, let's write a program to perform this task.
因此,让我们编写一个程序来执行此任务。
Key: The difference between the ASCII value of A and a is 32
密钥: A和a的ASCII值之差为32
Example:
例:
复制代码
1
2
3
4
5
6Input: Hello world! Output: HELLO WORLD!
<
最后
以上就是有魅力冰棍最近收集整理的关于Python程序不使用函数将字符大写的全部内容,更多相关Python程序不使用函数将字符大写内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复