zoukankan      html  css  js  c++  java
  • python 3.5

    # -*- coding:utf8 -*-
    # 原始字符串 三引号打印和多行注释一样
    # name = '''世界顶峰的 ''时间'''
    # print name
    # name="shfahfh"
    # print(len(name))
    # print(name[0:3])
    # for b in name:
    # print(b)
    # a =format("sjsjf%s"%"张三")
    # print a
    #
    # scort =format("select * from user where username ='%s'pwd= '%s'"%(name,a))
    # print(scort)
    # min =[('admin','123456'),
    # ('ad','875433'),
    # ('ad1','234567'),
    # ('ad2','244750'),
    # ('ad3','752345')]
    # name =raw_input("请输入账号:")
    # pwd=raw_input("请输入密码:")
    # i=0
    # if len(pwd)>=6:
    # scort[0][0]==name and scort[0][1]==pwd
    # scort[1][0] == name and scort[1][1] == pwd
    # scort[2][0]==name and scort[2][1]==pwd
    # scort[3][0] == name and scort[3][1] == pwd
    # scort[4][0] == name and scort[4][1] == pwd
    # print("账号密码存在")
    # else:
    # print("账号和密码有不相等的")

    # mat=8
    # mat1=9
    # print(mat*mat1)

    #找字符
    static ="ewsega"
    test ="a" in static
    print(test)
    # 查找字符的意思__doc__
    # 指定符号才能打印
    num =static.encode(encoding="utf-8",errors="sdhsdh")#.__doc__
    print num
    #字典查找
    dc ={}
    dc ["hshf"]="水粉画"
    dc ["sex"]="sjff"
    print(dc["sex"])
    #clear()删除元素 取空
    n1={"shh深度",2133,"闪电发货"}
    print(n1.__len__())
    n1.clear()
    print(n1)
    ddd =dc.copy()
    dv=ddd.fromkeys([1,2,3,4],["a","b"])
    #里面有这个值不,在返回布尔值
    b =dc.has_key("sex")
    b1=dc.popitem()
    print(b1)
  • 相关阅读:
    opendressinghash //use resize array
    ChainingHash
    Hash function
    stack && queue
    random_select
    counting sort
    master theorem
    各排序算法及其比较
    视图中添加主键的方法
    oracle表空间的扩展
  • 原文地址:https://www.cnblogs.com/chendongqq/p/8409578.html
Copyright © 2011-2022 走看看