完竣世界 -关注前端分享心得

    • 首页
    • 日常随想
    • 学习笔记
    • 收集
    • 项目案例

python 判断字符串是否是标题类型

python yekong 3个月前 (01-03) 119℃

istitle

判断字符串是否是标题类型 只试用于英文

str = 'wanjunshijie'
newstr = str.istitle()
print(newstr)
# 返回False
str2 = 'Hello Word'
newstr2 = str2.istitle()
print(newstr2)
# 返回 True
喜欢 (1)
python
python判断字符串是否是一个由空格组成的字符串 python判断字符串中的字母是否都是大写
  • mac 命令行修改dns
    mac 命令行修改dns
  • python 时间字符串转时间类型
    python 时间字符串转时间类型
  • python datetime包的使用
    python datetime包的使用
  • python3安装第三方包
    python3安装第三方包
  • mac 命令行修改dns
  • python 时间字符串转时间类型
  • python datetime包的使用
  • python3安装第三方包
  • python模块的导入 from .. import ..
  • python包的导入 import
  • python如何创建一个包
  • python包的身份证

联系方式

  • qq:858834013

近期文章

  • vue cli3关闭eslint
  • 百度地图清除所有覆盖物
  • vue 日期+时间每秒更新
  • el-upload 自定义header自定义文件字段
  • vue滚动到指定位置后跟随滚动
  • js监听页面滚动
  • js 监听窗口大小变化
  • momentjs获取30天前日期
  • momentjs日期格式化 年月日小时分钟秒
  • momentjs计算两个日期间的天数

分类

  • app
  • css
  • echarts
  • electron
  • flutter
  • js
  • nodejs
  • ps
  • python
  • uniapp
  • vue
  • web
  • webpack
  • wordpress
  • 代码段
  • 大屏
  • 学习笔记
  • 微信小程序
  • 收集
  • 日常随想
  • 项目案例
完竣世界 基于WordPress构建 © 2011-2020 冀ICP备11019094号