街角_祝福

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  Python

Python国密SM2签名及加解密
摘要:#!/usr/bin/env python # -*- coding:utf-8 -*- # @ProjectName: Demo # @Name: gm_test.py.py # @Auth: arbboter # @Date: 2022/9/6-14:06 # @Desc: # @Ver : 0 阅读全文

posted @ 2022-09-06 16:25 街角_祝福 阅读(5940) 评论(1) 推荐(1) 编辑

窗口置顶程序
摘要:代码实现 # coding: utf-8 import win32gui import win32con import sys def main(): if len(sys.argv) < 2: print('请指定窗口名称(尽可能准确)') return name = sys.argv[1] wn 阅读全文

posted @ 2022-07-01 11:05 街角_祝福 阅读(68) 评论(0) 推荐(0) 编辑

房贷计算实现
摘要:实现和测试代码 # coding : utf-8 def GetHouseLoan(year_rate, total_year, total_amt): """ 等额本息(月供固定) year_rate : 贷款年利率 total_year : 贷款总年限,单位年 total_amt :贷款总金额, 阅读全文

posted @ 2022-06-14 11:13 街角_祝福 阅读(36) 评论(0) 推荐(0) 编辑

AnyWhere
摘要:anyexec_date 201506171258 anyexec_date ```python@@AnyWhereCmdidcpython /home/appadmin/nicker/tools/QUI.py mobile 18659263519@@AnyWhereCmd``` 阅读全文

posted @ 2015-06-15 18:14 街角_祝福 阅读(128) 评论(0) 推荐(0) 编辑

python装饰器
摘要:参考资料:1. Python装饰器学习http://blog.csdn.net/thy38/article/details/44714212. Python装饰器与面向切面编程http://www.cnblogs.com/huxi/archive/2011/03/01/1967600.html3. ... 阅读全文

posted @ 2012-10-01 23:24 街角_祝福 阅读(160) 评论(0) 推荐(0) 编辑

查看QQ是否在线
摘要:源码:import os,time,datetime,stringimport urllib2def chk_qq(qqnum): chkurl = 'http://wpa.qq.com/pa?p=1:'+`qqnum`+':1' #print(chkurl) a = urllib... 阅读全文

posted @ 2012-08-24 09:28 街角_祝福 阅读(220) 评论(0) 推荐(0) 编辑

递归排序
摘要:import randomdef qsort(L): if len(L)L[0]]))li = []for i in range(20): li.append(random.randrange(10,100))print(li)print(sorted(li))print(qsort(l... 阅读全文

posted @ 2012-08-10 14:26 街角_祝福 阅读(124) 评论(0) 推荐(0) 编辑

wxPython的简单使用
摘要:+看书。import wxdef load(event): file = open(filename.GetValue()) contents.SetValue(file.read()) file.close() def save(event): file = open... 阅读全文

posted @ 2012-08-10 09:24 街角_祝福 阅读(309) 评论(0) 推荐(0) 编辑

入门知识
摘要:1.代码块不像其他程序通过大括号来区分,Python的代码块是通过排版,空格缩进来区分的。(很不习惯)2.模块执行时,如果是导入的话,那么__name__的值为模块名,如果是被直接执行的话,那就会是__main__3.变量无需声明,可直接使用4.利用exec和eval可以直接执行镶嵌在程序内部的字符... 阅读全文

posted @ 2012-07-31 11:02 街角_祝福 阅读(110) 评论(0) 推荐(0) 编辑

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