03 2023 档案

摘要:多个个月前 arrow.get(end_time_str, 'YYYY-MM-DD HH:mm:ss').shift(months=-6).format('YYYY-MM-DD HH:mm:ss') 获取几小时之前,几分钟前,几天前,几个月前,及几年前的具体时间 import datetime im 阅读全文
posted @ 2023-03-29 16:25 Alive_2020 阅读(22) 评论(0) 推荐(0) 编辑
摘要:def test(a, b, c=1): like = 111 ccc = 222 def inner(args): x = 11 return return inner # print(test.__code__.co_argcount) # 获取指定函数的参数个数 # print(test.__ 阅读全文
posted @ 2023-03-29 13:20 Alive_2020 阅读(29) 评论(0) 推荐(0) 编辑
摘要:from Crypto.Signature import pkcs1_15 from Crypto.Hash import SHA256 from Crypto.PublicKey import RSA def sign_data(data, private_key_path): with open 阅读全文
posted @ 2023-03-23 10:11 Alive_2020 阅读(249) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/env python # -*- coding:utf-8 -*- # author:SunXiuWen # datetime:2019/11/18 0018 14:04 from enum import Enum, unique """经验证和文档发现仅仅用于py3,py2无 阅读全文
posted @ 2023-03-16 14:59 Alive_2020 阅读(12) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/env python # -*- coding:utf-8 -*- # author:SunXiuWen # datetime:2021/12/27 0027 """ 常用类型提示 int,long,float: 整型,长整形,浮点型; bool,str: 布尔型,字符串类型; 阅读全文
posted @ 2023-03-16 14:19 Alive_2020 阅读(29) 评论(0) 推荐(0) 编辑
摘要:# PyCharm|1. 基本使用 """ 常见示例:https://vimsky.com/examples/detail/python-method-sqlparse.sql.html """ import sqlparse sql = "select*from fool;delete into 阅读全文
posted @ 2023-03-14 11:28 Alive_2020 阅读(911) 评论(0) 推荐(0) 编辑
摘要:这段代码中的核心在于"n=letters[index]",随着每次的index递增,我们的n值是不一样的.也就是按钮动态增加的过程中,每次command中绑定的n是不一样的,而不是永远的最后一个"i",另外的巧妙之处在于,代码将button对象追加到一个buttons的空列表中,这样,随着index 阅读全文
posted @ 2023-03-02 16:52 Alive_2020 阅读(183) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示