07 2019 档案

摘要:举个例子 def a_decorator(func): def wrapTheFunc(): print "before decorator" func() print "end decorator" return wrapTheFunc @a_decorator def a_func_need_d 阅读全文
posted @ 2019-07-23 23:32 jihite 阅读(181) 评论(0) 推荐(0) 编辑
摘要:参考 https://www.jianshu.com/p/fd3aae701db9 阅读全文
posted @ 2019-07-16 09:47 jihite 阅读(1306) 评论(0) 推荐(0) 编辑
摘要:场景 美国交流电插头(2头)无法插到欧洲壁式插座(3孔) 解决方法是在中间环节用适配器转化下搞定。 意图 将一个借口转化成另一个接口 举例 代码 # # ## ## ### 测试 输出 阅读全文
posted @ 2019-07-14 23:48 jihite 阅读(390) 评论(0) 推荐(0) 编辑
摘要:创建Scanner对象语法 Scanner scan = new Scanner(System.in); 使用next()获取输入的字符串 使用nextLine()获取字符串 以上二者区别 nextLine()见到回车就结束,而next()必须得到有效字符 next()获取第一个空格前数据(比如,输 阅读全文
posted @ 2019-07-01 10:59 jihite 阅读(7936) 评论(1) 推荐(1) 编辑

点击右上角即可分享
微信分享提示