摘要:
1.1 读取import winreg key = winreg.OpenKey(winreg.HKEY_CURRENT_USER,r"Software\Microsoft\Windows\CurrentVersion\Explorer") #获取该键的所有键值,因为没有方法可以获取键值的个数,所以只能用这种方法进行遍历 try: i = 0 while 1: #EnumValue方法用来枚举键值,EnumKey用来枚举子键 name, value, type = winreg.EnumValue(key, i) pri... 阅读全文
摘要:
原文 http://blog.csdn.net/jclass/article/details/6145078一. base64 编码和解码任意的二进制字符串到文本字符串(主要用在HTTP EMAIL URL等 )官方帮助文档原文:This module provides data encoding and decoding as specified in RFC 3548. This standard defines the Base16, Base32, and Base64 algorithms for encoding and decoding arbitrary binary stri 阅读全文
摘要:
原文: http://blog.csdn.net/jclass/article/details/6144647一. 打印并输出到文件 >>> print("aa","bb"," 11 ","ddddd",sep='-',end='ok/t',file=open("c:/test.txt",'w')) >>> print("-" *40)#打印40个"-" >>& 阅读全文