会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
样子2018
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
25
26
27
28
29
30
31
32
33
···
52
下一页
2020年4月25日
Python 之操作sqlite3
摘要: 一、sqlite模块API sqlite3.connect(database [,timeout ,other optional arguments]) 该 API 打开一个到 SQLite 数据库文件 database 的链接。您可以使用 ":memory:" 来在 RAM 中打开一个到 data
阅读全文
posted @ 2020-04-25 13:29 样子2018
阅读(1493)
评论(0)
推荐(0)
2020年4月24日
Python 之requests网络请求模块
摘要: 一、函数 import requests requests.post(url) requests.put(url) requests.delete(url) requests.head(url) requests.get(url) **kwargs:控制访问参数,为可选项 params : 字典或字
阅读全文
posted @ 2020-04-24 22:44 样子2018
阅读(561)
评论(0)
推荐(0)
Python 之os文件目录模块
摘要: 一、文件目录模块 os.access(path, mode)检验权限模式 os.chdir(path)改变当前工作目录 os.chflags(path, flags)设置路径的标记为数字标记。 os.chmod(path, mode) 更改权限 os.chown(path, uid, gid) 更改
阅读全文
posted @ 2020-04-24 16:39 样子2018
阅读(266)
评论(0)
推荐(0)
Python 之json模块
摘要: 一、函数列表 函数描述 json.dumps 将 Python 对象编码成 JSON 字符串 json.loads 将已编码的 JSON 字符串解码为 Python 对象 二、示例 #!/usr/bin/python import json data = [ { 'a' : 1, 'b' : 2,
阅读全文
posted @ 2020-04-24 16:33 样子2018
阅读(150)
评论(0)
推荐(0)
Python 之random随机数模块
摘要: 一、常用函数 random.randrange(1,100) 返回[1,100)范围内的随机数整数,不包括100 random.randint(1,100) 返回[1,100]范围内的随机数整数 random.random() 返回[0, 1)范围内随机浮点数,不包括1 random.choice(
阅读全文
posted @ 2020-04-24 16:27 样子2018
阅读(548)
评论(0)
推荐(0)
Python 之time时间模块
摘要: 一、函数列表 函数及描述 time.altzone返回格林威治西部的夏令时地区的偏移秒数。如果该地区在格林威治东部会返回负值(如西欧,包括英国)。对夏令时启用地区才能使用。 time.asctime([tupletime])接受时间元组并返回一个可读的形式为"Tue Dec 11 18:07:14
阅读全文
posted @ 2020-04-24 15:58 样子2018
阅读(218)
评论(0)
推荐(0)
Python 之sys系统模块
摘要: 一、函数列表 sys.argv 获取当前正在执行的命令行参数的参数列表(list) sys.modules.keys() 返回所有已经导入的模块列表 sys.platform 获取当前执行环境的平台 sys.path path是一个目录列表,供Python从中查找第三方扩展模块。 sys.exit(
阅读全文
posted @ 2020-04-24 15:49 样子2018
阅读(232)
评论(0)
推荐(0)
Uni-app 之猿产地项目
摘要: 一、效果图
阅读全文
posted @ 2020-04-24 09:59 样子2018
阅读(245)
评论(0)
推荐(0)
Tkinter 之socket聊天室
摘要: 一、效果图 二、代码 import json import time from tkinter import messagebox from threading import Thread from socketClient import SocketClient from LoginWindow
阅读全文
posted @ 2020-04-24 09:51 样子2018
阅读(1050)
评论(0)
推荐(0)
2020年4月18日
Python 之logging日志模块
摘要: 一、基本使用 import logging if __name__ == '__main__': logging.basicConfig(level = logging.DEBUG,format = '%(asctime)s - %(name)s - %(levelname)s - %(messag
阅读全文
posted @ 2020-04-18 16:15 样子2018
阅读(223)
评论(0)
推荐(0)
上一页
1
···
25
26
27
28
29
30
31
32
33
···
52
下一页
公告