当前位置:网站首页>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
>>>
边栏推荐
- Altium designer 19.1.18 - change the transparency of copper laying
- Pagoda create multiple sites with one server
- Apple system optimization
- static的作用
- Altium designer 19.1.18 - hide the fly line of a network
- Scm-05 basis of independent keyboard
- Ads usage skills
- Selenium element positioning
- Global and Chinese market of quenching furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
- Readme, self study record
猜你喜欢
Numpy——1.數組的創建
[neo4j] common operations of neo4j cypher and py2neo
Altium designer 19.1.18 - Import frame
MySQL - storage engine
软件设计师:03-数据库系统
Pagoda create multiple sites with one server
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
MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
Altium Designer 19.1.18 - 清除测量距离产生的信息
Software designer: 03 database system
随机推荐
MySql——存储引擎
Global and Chinese markets for recycled boilers 2022-2028: Research Report on technology, participants, trends, market size and share
Day08 ternary operator extension operator character connector symbol priority
Software designer: 03 database system
The number of occurrences of numbers in the offer 56 array (XOR)
P3D gauge size problem
Opendrive ramp
Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
Global and Chinese market of core pallets 2022-2028: Research Report on technology, participants, trends, market size and share
QT's excellent articles
assert_ Usage of param function
Detailed explanation of C language pointer
Process (P) runs, and idle is different from pycharm
通过sql语句统计特定字段出现次数并排序
Practical application cases of digital Twins - fans
Apple system shortcut key usage
Apple terminal skills
Web page Chinese display (print, etc.) GBK error, solution, software
Deepin get file (folder) list
CADD course learning (6) -- obtain the existing virtual compound library (drugbank, zinc)