摘要: 什么是独占设备技术?为什么说 “SPOOLing不是独占设备的”? 百度百科没有解释,从教材中找到了: 第二章 取数指令 load To load a value from memory, you copy the data from memory into a register. store To 阅读全文
posted @ 2017-03-10 20:19 Jay54520 阅读(2079) 评论(1) 推荐(0) 编辑
摘要: 推荐先看视频(youtube) Ned Batchelder - Facts and Myths about Python names and values - PyCon 2015 make a new list, don't change the mutable param shadowcopy 阅读全文
posted @ 2017-03-10 16:43 Jay54520 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 参考文章:https://semaphoreci.com/community/tutorials/getting-started-with-mocking-in-python 上文中测试 requests 也使用了 patch,但我现在是使用 httpmock,感觉更加方便。 疑问:既然我 mock 阅读全文
posted @ 2017-03-10 14:46 Jay54520 阅读(1008) 评论(0) 推荐(0) 编辑
摘要: 注意Django的生成的默认api place_instance.restaurant 引用对应的 restaurant,为 Model `Restaurant`名称的 lower() 形式 restaurant.place,通过字段名称 `place` 引用 restaurant_instance 阅读全文
posted @ 2017-03-10 11:40 Jay54520 阅读(331) 评论(0) 推荐(0) 编辑