12 2018 档案
摘要:在 Vim 中,有四个与编码有关的选项,它们是:fileencodings、fileencoding、encoding 和 termencoding。在实际使用中,任何一个选项出现错误,都会导致出现乱码。因此,每一个 Vim 用户都应该明确这四个选项的含义。下面,我们详细介绍一下这四个选项的含义和作
阅读全文
摘要:更改系统时间并同步硬件时钟 hwclock说明:hwclock --help
阅读全文
摘要:其他命令:lscpu
阅读全文
摘要:实现一个简单的api功能,环境python2.7 来自官网 《PEP 333 -- Python Web Server Gateway Interface v1.0》的忠告,这个接口就是玩玩,不要作为生产使用!! Note: although we refer to it as an "applic
阅读全文
摘要:urllib模块url编码和解码: 1.urllib.quote,urllib.quote_plus ,urllib.unquote ,urllib.unquote_plus urllib.quote 说明: urllib.quote_plus 说明: 实例演示: 2.urllib.urlencod
阅读全文
摘要: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': ...
阅读全文
摘要:menu={ '河南':{ '郑州':{ '开封':{ '景点':['清明上河园','包公祠','禹王台','天波府'], '大学':['开封大学','河南大学'], '美食':['灌汤包'] }, ...
阅读全文