摘要: 在 Vim 中,有四个与编码有关的选项,它们是:fileencodings、fileencoding、encoding 和 termencoding。在实际使用中,任何一个选项出现错误,都会导致出现乱码。因此,每一个 Vim 用户都应该明确这四个选项的含义。下面,我们详细介绍一下这四个选项的含义和作 阅读全文
posted @ 2018-12-28 18:01 谁能不挨刀 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 更改系统时间并同步硬件时钟 hwclock说明:hwclock --help 阅读全文
posted @ 2018-12-27 12:48 谁能不挨刀 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 其他命令:lscpu 阅读全文
posted @ 2018-12-25 15:52 谁能不挨刀 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 实现一个简单的api功能,环境python2.7 来自官网 《PEP 333 -- Python Web Server Gateway Interface v1.0》的忠告,这个接口就是玩玩,不要作为生产使用!! Note: although we refer to it as an "applic 阅读全文
posted @ 2018-12-25 11:32 谁能不挨刀 阅读(523) 评论(0) 推荐(0) 编辑
摘要: urllib模块url编码和解码: 1.urllib.quote,urllib.quote_plus ,urllib.unquote ,urllib.unquote_plus urllib.quote 说明: urllib.quote_plus 说明: 实例演示: 2.urllib.urlencod 阅读全文
posted @ 2018-12-19 14:14 谁能不挨刀 阅读(2609) 评论(0) 推荐(0) 编辑
摘要: curent_menu=menu history_menu=[] quit_flag=False while not quit_flag: print('菜单:q退出,b返回'.center(50,'*')) for k in curent_menu: print(k) choice=input('请选择:') if choice == 'q': ... 阅读全文
posted @ 2018-12-17 20:45 谁能不挨刀 阅读(176) 评论(0) 推荐(0) 编辑
摘要: menu={ '河南':{ '郑州':{ '开封':{ '景点':['清明上河园','包公祠','禹王台','天波府'], '大学':['开封大学','河南大学'], '美食':['灌汤包'] }, ... 阅读全文
posted @ 2018-12-17 20:43 谁能不挨刀 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 一、问题阐述 用URL传参数的时候,用&符号连接,如果某一个参数中含"#$ ^ & * + ="这些符号的时候,在另一个页面getParameter就会取不到传过来的参数。 二、解决方法 有些符号在URL中是不能直接传递的,如果要在URL中传递这些特殊符号,那么就要使用他们的编码了。编码的格式为:% 阅读全文
posted @ 2017-12-13 15:49 谁能不挨刀 阅读(2188) 评论(0) 推荐(0) 编辑
摘要: nginx代理配置 server { listen 80; server_name web1.chbo.com; location ~*\.(do|jsp)$ { proxy_pass http://web1.chbo.com:8080; #为后端服务器设置Real-IP参数 proxy_set_header... 阅读全文
posted @ 2017-09-10 09:23 谁能不挨刀 阅读(102) 评论(0) 推荐(0) 编辑
摘要: OS: CentOS 6.5 下载地址: jdk: http://www.oracle.com/technetwork/java/javase/downloads/index.html tomcat: http://tomcat.apache.org/ 上传至服务器,并安装 jdk :yum install jdk-*.rpm tomcat: tar -xf apache-tomcat... 阅读全文
posted @ 2017-09-09 15:57 谁能不挨刀 阅读(111) 评论(0) 推荐(0) 编辑