【Python】第二章2.1–2.5练习题

python练习题、数据转换、python润平年

【Python第二章】2.4题

# 将字符 "Nice To Meet You !"的大写转为小写
# 两种解法 ord判断ASCLL码是否大于65小于97
# 或者使用函数.lower()

开始编译:

# 将字符 "Nice To Meet You !"的大写转为小写
# 两种解法 ord判断ASCLL码是否大于65小于97
# 或者使用函数.lower()
hello = "Nice To Meet You !"
print(hello.lower())
运行结果:
nice to meet you !

Visits: 433

默认图片
JiHua

一个专注于前端和NodeJs的网站开发者

文章: 20