码迷,mamicode.com
首页 > 其他好文 > 详细

三天一小节 需要熟练掌握的类型方法

时间:2018-02-09 23:50:06      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:[]   特殊   gpo   索引   for   int   nbsp   需要   pos   

#数字
    int
#字符串
    replace
    find 
    join
    strip
    startwith
    endwith
    upper
    lower
    format  特殊的 v = template.format(**{name:fdsa,age:fdasf}) 
#列表
    append 
    extend 
    insert
    索引、切片、循环
#元组 忽略
#字典
    get 
    update
    keys
    values
    items
    for 
    索引
#布尔值
0 1 
bool()
为假的:none ()  0  ‘‘ [] {}

 

三天一小节 需要熟练掌握的类型方法

标签:[]   特殊   gpo   索引   for   int   nbsp   需要   pos   

原文地址:https://www.cnblogs.com/zy0718/p/8436932.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!