摘要: 同步: 一个进程在执行某个请求的时候,若该请求需要一段时间才能返回信息,那么这个进程将会一直等待下去,直到收到返回信息才继续执行下去; 异步: 指进程不需要一直等下去,而是继续执行下面的操作,不管其他进程的状态。当有消息返回时系统会通知进程进行处理,这样可以提高执行的效率。 并发: 系统支持两个或者 阅读全文
posted @ 2019-03-27 18:43 aPSYCHO 阅读(864) 评论(0) 推荐(0) 编辑
摘要: 块级元素主要有: address , blockquote , center , dir , div , dl , fieldset , form , h1 , h2 , h3 , h4 , h5 , h6 , hr , isindex , menu , noframes , noscript , 阅读全文
posted @ 2019-03-16 10:01 aPSYCHO 阅读(567) 评论(0) 推荐(0) 编辑
摘要: <1>. json : JavaScript 对象表示法(JavaScript Object Notation) 数据在名称/值对中 数据由逗号分隔 花括号保存对象 方括号保存数组 数字(整数或浮点数) 字符串(在双引号中) 逻辑值(true 或 false) 数组(在方括号中) 对象(在花括号中) 阅读全文
posted @ 2019-03-15 20:32 aPSYCHO 阅读(270) 评论(0) 推荐(0) 编辑
摘要: os模块偏于文件目录管理 <1>.常用方法 os.getcwd() 返回当前工作目录 os.chdir(dir) 更改当前工作目录,相当于cd os.mkdir(dir) 生成一级目录 os.makedirs(dir1/dir2) 生成多级目录 os.rmdir(dir) 删除一级目录且目录必须为空 阅读全文
posted @ 2019-03-08 17:55 aPSYCHO 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/python3 2 # coding : utf-8 3 4 def passwd_creation(passwd_length,characters_for_passwd,path_for_saving): 5 ''' The first parameter is the length of password which is type ; 6 ... 阅读全文
posted @ 2019-03-05 17:30 aPSYCHO 阅读(552) 评论(0) 推荐(0) 编辑
摘要: <1>.模块:任何 *.py 的文件都可以当作模块使用 import 导入 >>>improt test >>>b=test.a() >>>print(b.test) 模块搜索顺序为: <a>当前主程序的工作目录下 <b>系统环境变量下的所有文件 <2>.包:包含一个__init__.py和其他模块 阅读全文
posted @ 2019-03-03 21:16 aPSYCHO 阅读(339) 评论(0) 推荐(0) 编辑
摘要: <1>.Apache防火墙配置 firewall-cmd --add-service=http firewall-cmd --add-service=https 防火墙通过80和443端口 <2>.Apache连接php配置 在其后加上一行AddType application/x-httpd-ph 阅读全文
posted @ 2019-02-14 18:57 aPSYCHO 阅读(177) 评论(0) 推荐(0) 编辑