#catgenpass.py
fromrandomimportchoice
importstring
defGenPasswd(length=20,chars=string.letters+string.digits):
return‘‘.join([choice(chars)foriinrange(length)])
foriinrange(6):
printGenPasswd(20)运行结果为:#pythongenpass.py
mv2yMlDEyQFcujkh7ttM
4fNmbh2at..
分类:
编程语言 时间:
2015-08-26 20:19:47
阅读次数:
231
#!/bin/bash#echo -e "\033[31mWarning:此程序用于格式化分区! \033[0m"fdisk -l 2>/dev/null |grep -o "^Disk /dev/[sh]d[a-z]"|awk '{print $2}'read -p "Your choice:" ...
分类:
其他好文 时间:
2015-08-25 18:53:14
阅读次数:
123
1517. Freedom of Choice
Time limit: 2.0 second
Memory limit: 64 MB
Background
Before Albanian people could bear with the freedom of speech (this story is fully described in the problem "Free...
分类:
编程语言 时间:
2015-08-21 19:33:06
阅读次数:
293
1、设备重加电启动,按Ctrl+B进入bootrom菜单;(密码是huawei)
2、修改启动配置文件名称
Main Menu
1. Default Startup
2. Serial Menu
3. Network Menu
4. Startup Select
5. File Manager
6. Reboot
Enter your choice(1-6):5 //选择5,文件...
分类:
其他好文 时间:
2015-08-21 13:48:58
阅读次数:
1906
uva 1175 Ladies’ ChoiceBackgroundTeenagers from the local high school have asked you to help them with the organization of next yearÕs Prom. The idea is to find a suitable date for everyone in the clas...
分类:
其他好文 时间:
2015-08-18 22:57:01
阅读次数:
202
题意: 给出每个男的心目中的女神排序,给出每个女的心目中的男神排序,即两个n*n的矩阵,一旦任意两个非舞伴的男女同学觉得对方都比现任舞伴要好,他们就会抛弃舞伴而在一起。为了杜绝这种现象,求每个男的最后所搭配的女伴是谁。思路: 怎么感觉题意有点问题,输出的是第i行的男人所搭配的女人,即输出的是...
分类:
编程语言 时间:
2015-08-17 21:29:52
阅读次数:
179
Problem I – Ladies’ Choice
Background
Teenagers from the local high school have asked you to help them with the organization of next year’s Prom. The idea is to find a suitable date for everyone in...
分类:
编程语言 时间:
2015-08-14 17:07:48
阅读次数:
219
代码示例 1 #include 2 using namespace std; 3 class poser 4 { 5 public: 6 virtual void beat()const{ cout > choice; //用户输入的临时变量3...
分类:
其他好文 时间:
2015-08-14 11:16:51
阅读次数:
118
admin.py from?django.contrib?import?admin
#?Register?your?models?here.
from?.models?import?Question,Choice
class?ChoiceInline(admin.TabularInline):
????model?=?Choice
????ext...
分类:
其他好文 时间:
2015-08-14 08:53:09
阅读次数:
184
#define ret_ok 0
#define ret_err 1
#define ARRAY_SIZE 10/*选择法排序*/
int Choice_Sort(int array[],int array_len)
{
int i = 0;
int j = 0;
int iMin = 0;
int iTemp = 0;
int iFlag = 0;...
分类:
编程语言 时间:
2015-08-13 07:46:29
阅读次数:
194