具体代码如下所示:
#coding:utf8
import random,wx
def password(event):
a = [chr(i) for i in range(97,123)]
b = [chr(i) for i in range(65,91)]
c = ['0','1','2','3','4','5','6','7','8','9']
d = ['!','','#','$','%','^','&','*','(',')','=','_','+','/','?'
Linux shell tr 命令详解
1. 用途
tr,translate的简写,主要用于压缩重复字符,删除文件中的控制字符以及进行字符转换操作。
2. 语法
tr [OPTION]... SET1 [SET2]
3. 参数
3.1 -s 压缩重复字符
-s: squeeze-repeats,用SET1指定的字符来替换对应的重复字符 (replace each input sequence of a repeated character that is listed in SET