导航

 

2018年7月10日

摘要: var http = require('http'); http.createServer(function (req, res) {res.writeHead(200, {'Content-Type': 'text/plain'});res.end('Hello World\n'); }).listen(8124, "127.0.0.1"); console.log('Server run... 阅读全文
posted @ 2018-07-10 14:41 slqt 阅读(413) 评论(0) 推荐(0) 编辑
 
摘要: # coding:gbk import sys import locale def p(f): print '%s.%s(): %s' % (f.__module__, f.__name__, f()) # 返回当前系统所使用的默认字符编码 p(sys.getdefaultencoding) # 返回用于转换Unicode文件名至系统文件名所使用的编码 p(sys.get... 阅读全文
posted @ 2018-07-10 14:23 slqt 阅读(3792) 评论(0) 推荐(0) 编辑