#import getpass 1、猜年龄,可以让用户最多猜三次; age = 56n = 0while n < 3: guess_age = int(input ("pls input your guess_age(u get three times):")) n = n + 1 if guess ...
分类:
其他好文 时间:
2017-07-24 09:57:00
阅读次数:
155
客官您最终回头了!让我们本着探(zuo)索(si)精神把 session.py 看完吧... 首先看看须要的库: pickle 一个用于序列化反序列化的库(听不懂?你直接看成和 json 一样作用即可了...) hmac 和 hashlib 用于生成加密字符串 uuid 用于生成一个唯一 id me ...
分类:
系统相关 时间:
2017-07-24 09:56:53
阅读次数:
203
一:路由器的密码恢复如果忘记了路由器的enable密码,就无法进入特权模式,因此也就无法对路由器执行配置。这时如果要重新配置路由器,就需要重启路由器的时候绕过startup-config配置文件(enable密码保存在startup-config配置文件中),然后重新配置enable密码。如果要使路由器..
分类:
其他好文 时间:
2017-07-24 09:56:44
阅读次数:
204
1、FILE*popen(constchar*cmd,constchar*type);intpclose(FILE*stream);popen()函数fork()一个子进程,创建管道用于父子进程间通信,父进程要么从管道读,要么往管道写,执行一个shell以运行命令来开启一个进程相比于system()的又是在于使用简单,popen()只返回两个值,成功返..
分类:
系统相关 时间:
2017-07-24 09:56:38
阅读次数:
189
1 错误描写叙述 19:15:34 call sp_store_insert(90) Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses ...
分类:
其他好文 时间:
2017-07-24 09:56:31
阅读次数:
217
请假所以摘自李辉 Shell介绍 [root@server ~]# 两部分组成,#为命令行提示符;#为超级用户,$为其它用户; @前为第一部分,用户的身份 @后为第二部分,你所在的主机名 ~位置所展示的内容为当前用户所在的目录 Shell 命令三部分 shell命令、选项、参数; 一般选项都是在前边 ...
分类:
其他好文 时间:
2017-07-24 09:56:24
阅读次数:
134
mount/dev/sr0/mnt/cdrommkdir/application/centos7-prsync-a--exclude=/mnt/cdrom/Packages/--exclude=/mnt/cdrom/repodata//mnt/cdrom//application/centos7/
分类:
其他好文 时间:
2017-07-24 09:56:15
阅读次数:
138
在ls指令加 -l 参数能看到文件权限 就像这样: drwxrwxr-x 2 asml users 4096 Jul 24 02:45 desktop 第一个d表示这是个目录,若为"-"则为文件,"l"为链接,然后是三组rwx(读写运行)设置,分别对应:文件归属用户(u) 文件归属组(g) 其他用户 ...
分类:
系统相关 时间:
2017-07-24 09:56:10
阅读次数:
149
目录结构: // <![CDATA[ function shocon(){ document.getElementById("modol").style.display="block"; } function clocon(){ document.getElementById("modol").st ...
分类:
编程语言 时间:
2017-07-24 09:56:03
阅读次数:
634
发布一个版本时,我们通常先在版本库中打一个标签(tag),这样,就唯一确定了打标签时刻的版本。将来无论什么时候,取某个标签的版本,就是把那个打标签的时刻的历史版本取出来。所以,标签也是版本库的一个快照。 Git的标签虽然是版本库的快照,但其实它就是指向某个commit的指针(跟分支很像对不对?但是分 ...
分类:
其他好文 时间:
2017-07-24 09:55:53
阅读次数:
130
Request/ReplypatternMostbasicpatternisclient/servermodel,whereclientsendsarequestandserverrepliestotherequest.Thereisonedifferencefromzmq.PAIRandothertypeofZMQsockets.ZMQREQsocketscanconnecttomanyservers.Therequestswillbeinterleavedordistributedtoboththeser..
分类:
其他好文 时间:
2017-07-24 09:55:48
阅读次数:
232
1) ...
分类:
编程语言 时间:
2017-07-24 09:55:42
阅读次数:
119
{".babelrc":{"isFile":true,"encoding":"utf-8","contents":"{\n \"presets\": [\n [\"env\", {\n \"modules\": false,\n \"targets\": {\n \"browsers\": [\"> ...
分类:
其他好文 时间:
2017-07-24 09:55:34
阅读次数:
255
1.我们已经建了一个person类,接下来就是表的存储结构 2.打开Inspector,先输入rowid名字为p_RowID,选class->Storage 3.新建一个Storage,选择CacheSQLStorage。在SqlIdExpression中输入$i(^mdata(“Person”)) ...
分类:
数据库 时间:
2017-07-24 09:55:26
阅读次数:
231
(非递归实现) (递归实现) 最优时间复杂度:O(1) 最坏时间复杂度:O(logn) 二分查找又称折半查找,优点是比较次数少,查找速度快,平均性能好;其缺点是要求待查表为有序表,且插入删除困难。 ...
分类:
编程语言 时间:
2017-07-24 09:55:16
阅读次数:
174
$request->all();//全部 $method = $request->method();//取 请求类型 $request->isMethod('post');// 判断是否Post $request->input('name'); //取 POST name 的值 $request-> ...
分类:
其他好文 时间:
2017-07-24 09:55:09
阅读次数:
119
All our characters have hobbies. The same is true for Fedor. He enjoys shopping in the neighboring supermarket. The goods in the supermarket have uniq ...
分类:
其他好文 时间:
2017-07-24 09:55:02
阅读次数:
152