会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
sonofthesea
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
公告
上一页
1
···
3
4
5
6
7
2018年2月11日
list类型
摘要: 1.append():追加元素 2.extend():扩展列表 3.index():获取某个元素的索引 4.insert():在某位置插入某个元素 5.pop():去除最后一个元素,并返回该元素 6.reverse():顺序翻转 7.删除元素:del list[index], del list[st
阅读全文
posted @ 2018-02-11 12:03 sonofthesea
阅读(147)
评论(0)
推荐(0)
2018年2月10日
str 类型
摘要: 1.capitalize():首字母大写 2.center(size,fillwith): 3.count(sub,start,end):计算子序列的个数 4.decode() 5.encode() 6.endswith(sub,start,end) 7.expandtabs([num]):将tab
阅读全文
posted @ 2018-02-10 19:38 sonofthesea
阅读(194)
评论(0)
推荐(0)
2018年2月7日
python 学习笔记
摘要: 1. import getpass getpass.getpass("请输入密码") 2.编解码 对于从python2.7过来的人,对python3的感受就是python3对文本以及二进制数据做了比较清晰的区分。文本总是Unicode,由str类型进行表示,二进制数据使用bytes进行表示,不会将s
阅读全文
posted @ 2018-02-07 14:17 sonofthesea
阅读(518)
评论(0)
推荐(0)
Python new differences
摘要: 1. raw_input("") > input("")
阅读全文
posted @ 2018-02-07 12:00 sonofthesea
阅读(139)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7