当前位置:网站首页>Modify the case of the string title(), upper(), lower()
Modify the case of the string title(), upper(), lower()
2022-06-26 04:50:00 【I am a little monster】
title(): Capitalize the first letter of each word , The space between words can be used 、 Slashes, etc .
upper(): Make every letter capitalized .
lower(): Make each letter lowercase .
>>> s='wo shi xiaoguaishou'
>>> s.title()
'Wo Shi Xiaoguaishou'
>>> sss='wo\shi\ xiaoguaoshou'
>>> sss.title()
'Wo\\Shi\\ Xiaoguaoshou'
>>> ss=s.upper()
>>> ss
'WO SHI XIAOGUAISHOU'
>>> ss.lower()
'wo shi xiaoguaishou'
边栏推荐
- Differences between TCP and UDP
- How to use the configured slave data source for the scheduled task configuration class scheduleconfig
- 图解OneFlow的学习率调整策略
- Nabicat连接:本地Mysql&&云服务Mysql以及报错
- Hash problem
- 1.14 learning summary
- Svn error command revert error previous operation has not finished; run ‘ cleanup‘ if
- numpy 通用函数
- Nabicat connection: local MySQL & cloud service MySQL and error reporting
- 防撤回测试记录
猜你喜欢
1.24 learning summary
PHP small factory moves bricks for three years - interview series - my programming life
Zhongshanshan: engineers after being blasted will take off | ONEFLOW u
File upload and security dog
1.11 learning summary
torchvision_ Transform (image enhancement)
Install Damon database
PSIM software learning ---08 call of C program block
1.16 learning summary
Yolov5 super parameter setting and data enhancement analysis
随机推荐
Laravel uses phpword to generate word documents
A method of quickly transplanting library function code to register code by single chip microcomputer
Some parameter settings and feature graph visualization of yolov5-6.0
Genius makers: lone Rangers, technology giants and AI | ten years of the rise of in-depth learning
2022.2.17
Use of better scroll
Numpy general function
Multipass Chinese document - use multipass service to authorize the client
The select option in laravel admin contains a large amount of data
Multipass中文文档-移除实例
[IDE(ImageBed)]Picgo+Typora+aliyunOSS部署博客图床(2022.6)
2022.1.24
防撤回测试记录
记录一次循环引用的问题
PHP installation SSH2 extension
PowerShell runtime system IO exceptions
Text horizontal alignment attribute text align and element vertical alignment attribute vertical align
Multipass中文文档-与实例共享数据
图像翻译/GAN:Unsupervised Image-to-Image Translation with Self-Attention Networks基于自我注意网络的无监督图像到图像的翻译
1.21 learning summary