当前位置:网站首页>String judgment
String judgment
2022-07-05 07:47:00 【Fall in love with wx】
qingxin = 520 #qingxin For the string
qingxin.isalnum() All characters are numbers or letters , Go back to Ture, Otherwise return to False.
qingxin.isalpha() All characters are letters , Go back to Ture, Otherwise return to False.
qingxin.isdigit() All characters are numbers , Go back to Ture, Otherwise return to False.
qingxin.islower() All characters are lowercase , Go back to Ture, Otherwise return to False.
qingxin.isupper() All characters are uppercase , Go back to Ture, Otherwise return to False.
qingxin.istitle() All words are capitalized , Go back to Ture, Otherwise return to False.
qingxin.isspace() All characters are blank , Go back to Ture, Otherwise return to False.
such as
>>> wangxi = "I LOVE WANGXI"
>>> wangxi.isupper()
True
>>>
边栏推荐
- Deepin, help ('command ') output saved to file
- Global and Chinese market for blood typing 2022-2028: Research Report on technology, participants, trends, market size and share
- . Net service governance flow limiting middleware -fireflysoft RateLimit
- Leetcode solution - number of islands
- IC software learning
- Pit record of Chmod 2 options in deepin
- Threads and processes
- [professional literacy] specific direction of analog integrated circuits
- Butterfly theme beautification - Page frosted glass effect
- Altium designer 19.1.18 - change the transparency of copper laying
猜你喜欢
Set theory of Discrete Mathematics (I)
Altium designer 19.1.18 - hide the fly line of a network
Altium Designer 19.1.18 - 隐藏某一个网络的飞线
Daily Practice:Codeforces Round #794 (Div. 2)(A~D)
Significance and requirements of semiconductor particle control
Opendrive arc drawing script
C language uses arrays to realize the intersection, union, difference and complement of sets
Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
Explanation of parallel search set theory and code implementation
Altium designer 19.1.18 - Import frame
随机推荐
Cadence simulation encountered "input.scs": can not open input file change path problem
Global and Chinese markets of large aperture scintillators 2022-2028: Research Report on technology, participants, trends, market size and share
Calibre garbled
Global and Chinese markets for flexible endoscopic lithotripsy devices 2022-2028: Research Report on technology, participants, trends, market size and share
A simple method to prove 1/t Fourier transform
Using C language to realize IIC driver in STM32 development
Latex notes
GBK error in web page Chinese display (print, etc.), solution
Oracle-触发器和程序包
TCP and UDP
GPIO circuit principle of stm32
Mouse click fireworks explosion effect
Day01 markdown log entry tips
STM32 knowledge points
Logistic regression: the most basic neural network
Significance and requirements of semiconductor particle control
Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)
Apple terminal skills
The folder directly enters CMD mode, with the same folder location
Charles- unable to grab bags and surf the Internet