zoukankan      html  css  js  c++  java
  • python-字符串

    字符串

    简述

    字符串就是一系列字符,用引号括起来的都是字符串,引号可以是单引号也可以是双引号。

    字符串操作

    1.修改字符串大小写方法

    (1)upper()

    (2)lower()

    (3)title()

    2.字符串拼接方法

    (1)join()

    (2)+

    3.删除字符串空白

    (1)strip()

    (2)lstrip()

    (3)rstrip()

      

  • 相关阅读:
    小的面试题
    email
    网络
    进程,线程
    周日作业
    Python_day9
    Python_day8
    假期作业
    12/13
    Python_day7
  • 原文地址:https://www.cnblogs.com/marton/p/10651462.html
Copyright © 2011-2022 走看看