摘要:
class Singleton(object): def __new__(cls, *args, **kw): if not hasattr(cls, '_instance'): orig = super(Singleton, cls) cls._instance = orig.__new__(cls, *args, **k... 阅读全文
posted @ 2017-07-24 22:28
啊哈咧
阅读(159)
评论(0)
推荐(0)
摘要:
1、对URL解码 1)URI部分解码:<Connector URIEncoding="UTF-8" /> 2)QueryString解码要么是 Header 中 ContentType 定义的 Charset,要么是默认编码,使用 ContentType 指定编码是要 <Connector URIE 阅读全文
posted @ 2017-07-24 14:49
啊哈咧
阅读(205)
评论(0)
推荐(0)
摘要:
传统IO流体系 保存用户输入到文件 package io; import java.io.*; public class MyFileOutput { public static void main(String[] args) { FileInputStream fin; FileOutputSt 阅读全文
posted @ 2017-07-24 09:26
啊哈咧
阅读(135)
评论(0)
推荐(0)