当前位置:网站首页>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
>>>
边栏推荐
- Apple script
- Summary of STM32 serial port sending and receiving data methods
- Cygwin installation
- Scm-05 basis of independent keyboard
- With the help of Navicat for MySQL software, the data of a database table in different or the same database link is copied to another database table
- GBK error in web page Chinese display (print, etc.), solution
- Close of office 365 reading
- UE5热更新-远端服务器自动下载和版本检测(SimpleHotUpdate)
- Leetcode solution - number of islands
- Build your own random wallpaper API for free
猜你喜欢
Altium designer 19.1.18 - clear information generated by measuring distance
Leetcode solution - number of islands
Nombre - 1. Création de tableaux
C language uses arrays to realize the intersection, union, difference and complement of sets
Realization of binary relation of discrete mathematics with C language and its properties
High end electronic chips help upgrade traditional oil particle monitoring
Package ‘*****‘ has no installation candidate
Thunderbird tutorial \ easy to use mail client
Win10 shortcut key
Deepin get file (folder) list
随机推荐
C language uses arrays to realize the intersection, union, difference and complement of sets
How to modify the file path of Jupiter notebook under miniconda
Process (P) runs, and idle is different from pycharm
SQL JOINS
Charles- unable to grab bags and surf the Internet
STM32 learning method
Altium designer 19.1.18 - clear information generated by measuring distance
MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
Thunderbird tutorial \ easy to use mail client
Set theory of Discrete Mathematics (I)
Typecho adds Baidu collection (automatic API submission plug-in and crawler protocol)
1089 Insert or Merge 含测试点5
The printer encountered an abnormal configuration problem 0x8007007e (win10)
Global and Chinese markets for anesthesia, breathing and sleep apnea devices 2022-2028: Research Report on technology, participants, trends, market size and share
A complete set of indicators for the 10000 class clean room of electronic semiconductors
Altium designer 19.1.18 - hide the fly line of a network
Cygwin installation
QT's excellent articles
Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)
Day06 class variables instance variables local variables constant variables naming conventions