上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 48 下一页
摘要: 一、python生成时间戳 # 案例 生成时间戳 import time t = time.time() print(t) # 原始时间数据 print(int(t)) # 秒级时间戳 print(int(round(t * 1000))) # 毫秒级时间戳 print(int(round(t * 阅读全文
posted @ 2020-09-17 21:52 何双新 阅读(1376) 评论(0) 推荐(0)
摘要: python中调用API的几种方式: - urllib2- requests 一、调用别人的接口 案例1、urllib2 import urllib2, urllib github_url ='https://api.github.com/user/repos' password_manager = 阅读全文
posted @ 2020-09-09 21:47 何双新 阅读(10234) 评论(0) 推荐(0)
摘要: 1、外网穿透工具下载与注册【http://ngrok.ciqiuwl.cn/】 2、公众号审请 3、代码编写 糗事百科接口 # _*_ coding:utf-8 _*_ import requests from lxml import etree from random import randint 阅读全文
posted @ 2020-09-01 22:47 何双新 阅读(1275) 评论(6) 推荐(0)
摘要: 百度AI:https://ai.baidu.com 申请App_id 代码重点:pip install baidu_api from aip import AipOcr import os # 百度识别车牌 # 申请地址 http://ai.baidu.com/ # 请将您申请的Key写到项目根目录 阅读全文
posted @ 2020-08-29 16:24 何双新 阅读(1578) 评论(0) 推荐(0)
摘要: 安装软件:anaconda 一、下载: 方式一:在官网下载:https://www.anaconda.com/products/individual 方式二:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ 阅读全文
posted @ 2020-08-08 08:11 何双新 阅读(217) 评论(0) 推荐(0)
摘要: PyInstaller工具是跨平台的,它既可以在 Windows平台上使用,也可以在 Mac OS X 平台上运行。在不同的平台上使用 PyInstaller 工具的方法是一样的,它们支持的选项也是一样的。 PyInstaller 支持的常用选项 1、安装pyinstaller库:pip insta 阅读全文
posted @ 2020-08-06 07:02 何双新 阅读(940) 评论(0) 推荐(0)
摘要: python项目案例1: 此学习案例用python3编写,摘自明日科技,感谢! 学生管理系统: 功能描述:具有增删改查,排序,保存并显示学生的全部信息。 1、主界面 函数menu(),显示功能界面,方便用户选择功能; 2、主函数,程序入口 main() ; 3、录入学生信息 insert(); 4、 阅读全文
posted @ 2020-08-05 23:06 何双新 阅读(2532) 评论(0) 推荐(0)
摘要: odoo的RPC有两种:RPC API:1、xml-rpc 2、json-rpc 案例 xml-rpc from xmlrpc import client server_url='http://127.0.0.1:8069' db_name = 'odoo12_202007' username='a 阅读全文
posted @ 2020-07-27 23:53 何双新 阅读(1798) 评论(0) 推荐(0)
摘要: 工作中常用软件--收藏版 一、python开发编辑器 pycharm:https://www.jetbrains.com/pycharm/download/ 二、数据库软件postgresql https://www.postgresql.org/download/ 三、轻量sql操作软件 :支持多 阅读全文
posted @ 2020-07-16 23:05 何双新 阅读(370) 评论(0) 推荐(0)
摘要: 一、mac 终端下,执行以下命令,即可安装brew: 介绍brew:是Mac下的一款包管理工具brew 【brew install 软件】,类似与centos里面的 yum【yum install 软件】,ubuntu里面的apt-get【apt-get install 软件】 /usr/bin/r 阅读全文
posted @ 2020-07-16 22:01 何双新 阅读(584) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 48 下一页