![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
whh的学习笔记
这个作者很懒,什么都没留下…
展开
-
Python基础-0313-01
python基础原创 2023-03-13 18:19:45 · 104 阅读 · 0 评论 -
python-对数据库的查改操作
利用python对mysql查改操作原创 2022-07-27 11:35:06 · 840 阅读 · 0 评论 -
python 时间方法
import timedef get_currTime(): #获取当前时间 currTime=time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) print(currTime) return currTimedef get_currDate(): #获取当前日期 currDate=time.strftime("%Y-%m-%d", time.localtime()) print(curr原创 2021-10-24 21:30:58 · 90 阅读 · 0 评论 -
python 实现RSA加密
一、实现RSA加密的脚本如下:import pymysqlimport base64import randomfrom Crypto.Cipher import PKCS1_v1_5 as Cipher_pksc1_v1_5from Crypto.PublicKey import RSAdef _encrpt(string, public_key):rsakey = RSA.importKey(public_key) # 读取公钥cipher = Cipher_pksc1_v1_5.new原创 2021-10-24 21:12:51 · 5458 阅读 · 1 评论