python中怎样判断字符串是不是大写

 时间:2024-10-17 16:24:56

python中怎样判断字符串是不是大写?

方法/步骤

1、打开pycharm编辑器。

python中怎样判断字符串是不是大写

2、写上自己的注释内容。

python中怎样判断字符串是不是大写

3、新建一个变量test5

python中怎样判断字符串是不是大写

4、利用函数isupper来实现。test5.isupper()

python中怎样判断字符串是不是大写

5、将结果打印出来。print(test5.isupper())

python中怎样判断字符串是不是大写

6、在窗口中选择"run"->"run"

python中怎样判断字符串是不是大写

7、运行该程序。

python中怎样判断字符串是不是大写

优质酱油的识别 隐函数x^2-y^3=2的图像 新鲜饺子的做法 苹果键盘如何换行 区域卫生信息化平台
热门搜索
屁股图片 四合院图片 神经病图片 足癣图片 中药图片大全