python都有什么函数_【Python基础】Python的函数都有哪些

一、输入输出函数

1、print()函数

2、input() 函数

二、字符串函数

1、eval(str)函数

2、len(str)函数

3、str.lower()函数

5、str.swapcase()函数

6、str.capitalize()函数

7、str.title()函数

8、str.center(width[,fillchar])函数

9、str.ljust(width[,fillchar])函数

10、str.rjust(width[,fillchar])函数

11、str.zfill(width)函数

12、str2.count(str1,start,end)函数

13、str2.find(str1,start,end)函数

14、str2.rfind(str1,start,end)函数

15、str2.index(str1,start,end)函数

16、str.lstrip(char)函数

17、str.rstrip()函数

18、str2.split(str1.num)分离字符串

19、str1.join(seq)函数 字符串连接

20、str.replace(old,new[,count])函数 字符串的替换

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值