![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python学习
文章平均质量分 77
wshelly
业精于勤荒于嬉行成于思毁于随三千年读史不外功名利禄九万里悟道终归诗酒田园
展开
-
python学习第四天
wxpython写的计算器 #!/usr/bin/env python # -*- coding: utf-8 -*- # -*- coding: utf-8 -*-才能支持中文 import os import wx class MainWindow(wx.Frame): """docstring for MainWindow""" def __init__(self, paren原创 2015-08-24 23:39:41 · 447 阅读 · 0 评论 -
python学习第二天
今天用wxpython 实现简单的menu、 button 并为其绑定点击事件和对话框输出,很简单, 但还是需要好好体会 #!/usr/bin/env python # -*- coding: utf-8 -*- # -*- coding: utf-8 -*-才能支持中文 import os import wx class MainWindow(wx.Frame): def __init原创 2015-08-16 22:42:50 · 680 阅读 · 0 评论 -
python学习第一天
在windows 上搭建 python、wxpython、py2exe 需要下载的软件有: 1:首先安装python-2.7.10,然后其它顺序无所谓, 2:全部安装完毕后 配置环境变量,出现下图说明安装成功 3:先来个hello world爽爽 #! /usr/bin/env python #-*- encoding: utf-8 -*- #autho原创 2015-08-15 14:23:04 · 475 阅读 · 0 评论 -
python学习第三天
网上找了个 TextCtrl 单行文本框的例子, 挺好,保存下来 #!/usr/bin/env python #coding:UTF-8 import wx class TextFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self,None,-1,u"请登录", size=(400,400))原创 2015-08-22 23:17:35 · 620 阅读 · 0 评论 -
python 将一维列表转二维列表
增加并发性的需求, 将一维列表转为二维列表 if __name__ == "__main__": fd = open("domains.txt") domains = [] domains = [domain.strip() for domain in fd.readlines() if domain.strip()] n = 1 send_count =原创 2016-02-16 17:56:23 · 12341 阅读 · 0 评论 -
穷举破解linux登录密码
适用于以root用户登录后执行代码,密码存放在password.txt中,读取/etc/shadow内容,解密加密后密码 # -*- coding: utf-8 -*- import os import crypt import time import multiprocessing def decrypt_linux_passwd(find_user, salt, passwd): p原创 2016-02-16 18:03:46 · 1013 阅读 · 0 评论 -
python curses
#!/usr/bin/env python from os import system import curses def get_param(prompt_string): screen.clear() screen.border(0) screen.addstr(2, 2, prompt_string) screen.refresh() i原创 2017-02-07 15:52:01 · 433 阅读 · 0 评论