会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
黑色蝎子
博客园
首页
新随笔
联系
管理
订阅
[置顶]
开始对象的学习了
摘要: """3、编写一个函数验证哥德巴赫的猜想:任何一个充分大的偶数(大于等于6)总可以表示成两个素数之和 要求:将6-100之间的偶数,都用两个素数之和去表示。(选做)"""# trself.resdiueverse 遍历 prime 素数 even 偶数 residue 剩余# # # 先设定一个质数
阅读全文
posted @ 2018-01-20 15:15 BaTi_LDY
阅读(109)
评论(0)
推荐(0)
[置顶]
名片管理系统v1.1(tools)
摘要: cords_list = []def show_cords(): print("*"*80) print("欢迎使用【名片管理系统】v.1.1") print("") print("1.新建名片") print("2.显示全部") print("3.查询名片") print("") print("0
阅读全文
posted @ 2018-01-17 16:01 BaTi_LDY
阅读(180)
评论(0)
推荐(0)
[置顶]
名片管理系统v1.1(main)
摘要: # version: 1.1# author: Mark import cords_tools while True: # 显示界面 cords_tools.show_cords() cords_input = input("请选择操作功能: ") # 1,2,3功能函数 if cords_inpu
阅读全文
posted @ 2018-01-17 15:22 BaTi_LDY
阅读(159)
评论(0)
推荐(0)
2018年3月16日
mini_frame框架
摘要: import reimport loggingfrom urllib import parsefrom pymysql import * # URL_FUNC_DICT = {# "/index.py": index,# "/center.py": center# } URL_FUNC_DICT =
阅读全文
posted @ 2018-03-16 16:16 BaTi_LDY
阅读(138)
评论(0)
推荐(0)
web-服务器
摘要: import multiprocessingimport reimport socket from dynamic import mini_frame class Wsgi(object): """web服务器类""" def __init__(self): # 创建套接字 self.tcp_ser
阅读全文
posted @ 2018-03-16 16:15 BaTi_LDY
阅读(89)
评论(0)
推荐(0)
Python-Url编码和解码
摘要: Python-Url编码和解码 一、为什么要进行Url编码 url带参数的请求格式为(举例): http://www.baidu.com/s?k1=v1&k2=v2 当请求数据为字典data = {k1:v1, k2:v2},且参数中包含中文或者?、=等特殊符号时,通过url编码,将data转化为特
阅读全文
posted @ 2018-03-16 14:43 BaTi_LDY
阅读(178)
评论(0)
推荐(0)
2018年3月8日
re-complie_re-中文_
摘要: title').group() print(a) b = re.match('','title').group() print(b) 执行结果: title 复制代码 复制代码 复制代码 a = re.findall(r"a(\d+)b",'a3333b') print(a) b = re.find
阅读全文
posted @ 2018-03-08 08:41 BaTi_LDY
阅读(592)
评论(1)
推荐(0)
2018年3月5日
python第三方库-xlrd-xlwt的使用
摘要: 复制内容http://blog.csdn.net/wangkai_123456/article/details/50457284 一、xlrd和xlwt的安装 xlrd和xlwt是python的第三方库,所以是需要自己安装的,可以在python的官网https://pypi.python.org/p
阅读全文
posted @ 2018-03-05 21:26 BaTi_LDY
阅读(415)
评论(0)
推荐(1)
数据库操作
摘要: -- 数据库的操作 -- 链接数据库 mysql -uroot -p mysql -uroot -pmysql -- 退出数据库 exit/quit/ctrl+d -- sql语句最后需要有分号;结尾 -- 显示数据库版本 select version(); -- 显示时间 select now()
阅读全文
posted @ 2018-03-05 20:47 BaTi_LDY
阅读(140)
评论(0)
推荐(0)
2018年1月10日
if与while相互嵌套,菱形*的实现.py
摘要: """ * * * * * * * * * * * * * * * * * * * * * * * * * """ # -*-coding:utf-8-*- # i = 0## while i < 9:## if i < 5:## print(" "*(4-i),"* "*(i+1))## else
阅读全文
posted @ 2018-01-10 21:36 BaTi_LDY
阅读(670)
评论(0)
推荐(0)
下一页
公告