当前位置:网站首页>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'
边栏推荐
- ROS notes (07) - Implementation of client and server
- BACK-OFF RESTARTING FAILED CONTAINER 的解决方法
- SSH password free login, my server password free login to the other server, the other server password free login to your server
- 条件查询
- Dbeaver installation and configuration of offline driver
- [H5 development] 03- take you hand in hand to improve H5 development - single submission vs batch submission with a common interface
- 1.16 learning summary
- 2022.2.15
- UWB超高精度定位系统架构图
- 2022.2.11
猜你喜欢

0622-马棕榈跌9%

超高精度定位系统中的UWB是什么

为什么许多shopify独立站卖家都在用聊天机器人?一分钟读懂行业秘密!

Sixtool- source code of multi-functional and all in one generation hanging assistant

Introduction to markdown grammar

1.19 learning summary

torchvision_ Transform (image enhancement)

torchvision_transform(图像增强)

DBeaver 安装及配置离线驱动

1.17 learning summary
随机推荐
0622-马棕榈跌9%
做软件测试学历重要还是能力重要
Rdkit chemical formula molecular formula search
Problem follow up - PIP source change
Laravel uses phpword to generate word documents
一个从坟墓里爬出的公司
Database design (3): database maintenance and optimization
排序查询
File upload and security dog
UWB超高精度定位系统原理图
Install Damon database
1.21 learning summary
Numpy random number
22.2.8
Multipass中文文档-设置驱动
Text horizontal alignment attribute text align and element vertical alignment attribute vertical align
PowerShell runtime system IO exceptions
Laravel pay payment access process
What is the best way to store chat messages in a database? [Close] - best way to store chat messages in a database? [closed]
1.13 learning summary