PrintWriter out = response.getWriter(); out.print(obj)其源码如下: public void print(Object obj) { write(String.valueOf(obj)); } public void print(String s) { if (s == null) { s = "null"; } write(s); } out.writer(String)源码如下: public void write(String…
近期的项目中 涉及到相关知识 就来总结一下 ! 先看源码: def print(self, *args, sep=' ', end='\n', file=None): # known special case of print """ print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) Prints the values to a stream, or to sys.stdout by defa…