站点动态:欢迎您!今天是 2025-02-23 星期日!
Python中处理日期和时间的有关模块有time,datetime和calendar,本文主要讲time模块。
1、时间格式介绍
Python中通常使用以下几种方式来表示时间:
1.1 时间戳。一般来说时间戳表示的是从1970年1月1日00:00:00开始按秒计算的偏移量。
1.2 格式化的时间字符串。
1.3 元组struct_time。Python中定义了一个元组struct_time,共有9个元素:年、月、日、小时、分钟、秒、星期、一年中第几天、是否夏令时。

问题描述
Windows 7安装了最新版的谷歌浏览器Chrome,每次打开直接报错:“chrome.exe - 无法找到入口 无法定位程序输入点 SetProcessMitigationPolicy 于动态链接库 KERNEL32.DLL 上”
问题分析
更新了Google Chrome 110版本后,在Windows 7上运行Google Chrome,每次都会弹出这个错误窗口。根据官网信息,Google Chrome 109 是最后一个支持在Windows 7, Windows 8.x, Windows Server 2012上运行的版本。

DNS over HTTPS(DoH)是一个进行安全化的域名解析方案,使用HTTPS协议和HTTP/2协议进行DNS解析请求,工作在443端口,由RFC 8484定义,旨在避免原始DNS协议中用户的DNS解析请求被窃听或者修改。
操作方法
1、FireFox菜单 -> 设置 -> 网络设置,连接设置中勾选 启用基于 HTTPS 的 DNS,选用提供商选择 自定义,自定义填入 DoH服务器地址(如阿里DoH:https://223.6.6.6/dns-query)

本文主要介绍Python连接Redis数据库。
一、安装Redis库
使用命令: pip install redis
二、连接测试

对于IT工作者来说,单文件绿色版程序用于维护非常友好,放在U盘或者电脑可以很方便的使用。
本文以Advanced IP Scanner为例
一、准备工作
1、解压缩软件7-Zip
2、7zSfxTool
3、resource hacker

本文主要介绍在Windows系统下Python调用SAP RFC接口读取SAP数据。
一、准备工作
1、sap netweaver rfc SDK下载
官网下载(需要账号):https://me.sap.com/notes/2573790 (嫌麻烦文章末有下载)
2、Python的pyrfc包下载和安装,CMD命令下运行以下命令

本文主要介绍Python连接SQL Server数据库(MSSQL)。
一、安装PyMsSql库
使用命令: pip install pymssql
二、连接测试

本文主要介绍Python连接MySQL数据库并读写数据库。
一、安装PyMySql库
使用命令: pip install pymysql
二、连接测试

本文主要将通过VMware vCenter安装SUSE 15 SP4。
一、安装准备
1、SUSE15镜像:SLE-15-SP4-Full-x86_64-GM-Media1.iso,官网下载:https://www.suse.com/download/sle-sap/
2、VMware vCenter超融合,这个我就不详细说了。
二、环境配置

VMware vCenter Server Virtual Appliance 6.7(VCSA6.7)需要升级到VCSA7.0。
一、准备工作
1、vCenter兼容ESXi版本。ESXi6.7是被vCenter7.0支持的,不过官网的建议是升级新版本。
VMware官网查看:https://interopmatrix.vmware.com/Interoperability
2、VCSA7.0下载,VMware-VCSA-all-7.0.3-20395099.iso。官网需要注册账号登陆下载。