# Created by 凌云
# filename :python_1_21.py

a="qiwsir,python"
a.upper()
a

b = a.upper()
b

c = b.lower()
c

a 

a.capitalize()
a

b = a.capitalize()
b

a = "qiwsir,github"
a.istitle()

a = "QIWSIR"
a.istitle()

a = "qIWSIR"
a.istitle()

a = "Qiwsir,github"
a.istitle()

a = "Qiwsir"
a.istitle()

a = "Qiwsir,Github"
a.istitle()

a = "Qiwsir"
a.isupper()

a.upper().isupper()

a.islower()

a.lower().islower()

a = "This is a Book"
a.istitle()

b = a.title()
b

a.istitle()

  • python

    Python (发音:[ paiθ(ə)n; (US) paiθɔn ]n. 蟒蛇,巨蛇 ),是一种面向对象的解释性的计算机程序设计语言,也是一种功能强大而完善的通用型语言,已经具有十多年的发…

    7952 引用 • 22 回帖 • 2 关注
  • 零基础
感谢    赞同    分享    收藏    关注    反对    举报    ...