上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: 静态属性: 类方法: 静态方法: 阅读全文
posted @ 2018-10-09 21:37 Anec 阅读(1209) 评论(0) 推荐(0) 编辑
摘要: 三大编程范式 1.面向过程 2.函数式 3.面向对象 注意 编程范式没有高低之分,只有适用不适用. 面向对象编程: 编程是程序源用特定的语法+数据结构+算法组成的代码来告诉计算机如何执行任务的过程,一个程序是程序员为了得到一个任务结果而编写的一组指令的集合 ,正所谓条条大道通罗马,实现一个任务的方式 阅读全文
posted @ 2018-10-08 18:03 Anec 阅读(340) 评论(0) 推荐(0) 编辑
摘要: hashlib模块 阅读全文
posted @ 2018-10-05 15:34 Anec 阅读(119) 评论(0) 推荐(0) 编辑
摘要: server端: client端: 阅读全文
posted @ 2018-10-05 11:09 Anec 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 发送邮件 拓展: 常用icmp邮箱地址以及端口: 阅读全文
posted @ 2018-10-05 00:20 Anec 阅读(700) 评论(0) 推荐(0) 编辑
摘要: configparser模块 阅读全文
posted @ 2018-10-04 16:58 Anec 阅读(129) 评论(0) 推荐(0) 编辑
摘要: logging日志模块应用: 阅读全文
posted @ 2018-10-04 16:00 Anec 阅读(115) 评论(0) 推荐(0) 编辑
摘要: v1.0 计算器(数据内不含括号方式:) v2.0 计算器 阅读全文
posted @ 2018-09-29 14:38 Anec 阅读(203) 评论(0) 推荐(0) 编辑
摘要: import subprocess import re # info = subprocess.Popen("systeminfo",shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE).stdout.read().decode("gbk") # # with open(r"D:/info.txt",'w') as f: # ... 阅读全文
posted @ 2018-09-27 21:11 Anec 阅读(345) 评论(0) 推荐(0) 编辑
摘要: # import json #将数据类型转换成字符串 # data = {"a":"123"} # a = json.dumps(data) # print(a,type(a)) # b = json.loads(a) # print(b,type(b)) #将数据类型转换成字节,作为python私有,支持多种数据类型 # import pickle # data = {"a":"123"}... 阅读全文
posted @ 2018-09-24 21:08 Anec 阅读(136) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页