码迷,mamicode.com
首页 >  
搜索关键字:python3 随机密码生成    ( 12600个结果
Python 3编写的猜随机数的小游戏
#coding=utf-8 #!/usr/local/bin/python3 importrandom importsys keyNumber=random.randint(1,20)#生成1~20的随机数 decodeNumber=0 flag="N" whiledecodeNumber!=keyNumber: print("请输入您猜的数:") try: decodeNumber=int(input()) exceptValueError: print("您见过..
分类:编程语言   时间:2015-04-12 06:47:46    阅读次数:149
Python多线程启动http.server
OS: Windows 8.1 with update关键字:Python3.4, http.server, Thread例子代码如下:import osfrom threading import Threadimport timeimport webbrowserport_number = "80...
分类:编程语言   时间:2015-04-09 00:52:47    阅读次数:282
Python 20.21. cookielib模块翻译
Python 20.21.用于http客户端的处理的模块 By 白熊花田(http://blog.csdn.net/whiterbear) 转载请注明出处,谢谢。 原文链接:https://docs.python.org/2/library/cookielib.html 标注: cookielib模块已经在python3中改名为http.cookiejar了。2...
分类:编程语言   时间:2015-04-07 12:07:51    阅读次数:322
python SocketServer
SocketServer是标准库中一个高级别的模块,用于简化网络客户与服务器的实现。模块中,已经实现了一些可供使用的类。在Python3中,本模块为socketserver模块。在Python 2中,本模块为SocketServer模块。所以在用import导入时,要分情况导入,否则会报错。导入的代...
分类:编程语言   时间:2015-04-06 23:05:28    阅读次数:195
Linux自带随机密码生成命令,让加密随处可行
1. 使用SHA算法来加密日期,并输出结果的前32个字符: 1. date +%s |sha256sum |base64 |head -c 32 ;echo 将当前时间转换成sha算法生成结果如下:1.ZTNiMGM0NDI5OGZjMWMxNDlhZmJmNGM42. 使用内嵌的/dev/ur.....
分类:系统相关   时间:2015-04-05 11:42:24    阅读次数:256
Python 调用摄像头并保存图片
# -*- coding: utf-8 -*- from VideoCapture import Device interval = 2 cam = Device() cam.saveSnapshot('./image.jpg') Python3.4 .python2.7 均可使用 转载注明作者与出处...
分类:编程语言   时间:2015-04-03 17:24:13    阅读次数:269
Python在线教程
Python 3.x的http://www.ziqiangxuetang.com/python3/python3-stdlib.html廖雪峰的官方网站http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac927...
分类:编程语言   时间:2015-04-02 18:24:24    阅读次数:141
Solaris 10下使用Python3
通常在Solaris 10上只能使用Python2.x。如果使用Python3的话,一种就是http://www.sunfreeware.com获取可用的二进制版本,不过目前这个网站已经不提供免费下载了;这样我们就需要自己编译了。首先是在Python网站下载源代码,我下载了Pythob-3.4.3.tgz,可以用于sparc和x86版本。然后是下载编译器,由于suncc的编译器不支持Python,...
分类:编程语言   时间:2015-03-31 22:18:19    阅读次数:199
MAC 上升级python为最新版本
第1步:下载Python3.4下载地址如下:下载Mac OS X 64-bit/32-bit installerhttps://www.python.org/downloads/release/python-340/第2步: 安装安装下载的dmg文件第3步: 配置 创建下面的script, 改下版....
分类:编程语言   时间:2015-03-28 18:42:26    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!