zoukankan      html  css  js  c++  java
  • 2018.10.26-day5 python整理总结

    今日内容:
    1.字典
    2.id is ==
    3.小数据池
    4.集合
    昨日回顾:
    1.列表:可变的
    增:append//insert//extend//+//*
    删:remove//pop//clear//del
    改:lst[0] = 'alex'
    查:
    for循环
    下标
    切片
    其他:count//index//sort//reverse
    嵌套:lst = [1, 2, 3, 4, 5, 6, [5678, 23, 698], 4567547]
    2.元组:一个不可变的列表
    count//index
    3.range 范围
    range(起始位置, 终止位置, 步长)
    顾头不顾尾
    4.字典
    键值对:{'key': 'v'}
    键: 不可变数据类型
    值: 随意

  • 相关阅读:
    失格
    救赎
    篝火晚会
    旅行家的预算
    荒诞
    mod
    clique
    序列
    [CF932E]Team Work & [BZOJ5093]图的价值
    NOIWC2018游记
  • 原文地址:https://www.cnblogs.com/studybrother/p/9857088.html
Copyright © 2011-2022 走看看