本文继续沿用第三章的 XML 示例文档。选取价格高于30的 price 节点# 从父节点进行筛选>>> root.xpath('//book[price>30]/price')[]# 直接对 price 进行筛选>>> root.xpath('//price[text()>30]')[]选取 pri...
分类:
编程语言 时间:
2014-07-28 11:30:00
阅读次数:
336
在上一文章中由Entity Framework(实体框架)去实现了对数据库的CURD操作。在本篇文章中,主要是调试修改自动生成的动作方法和视图,以及调试编辑功能与编辑功能的Book控制器。所有HTTPGET方法遵循类似的模式。通过HTTP GET方式修改数据存在一个安全隐患。在GET方法修改数据也违...
分类:
Web程序 时间:
2014-07-27 23:18:09
阅读次数:
414
1、龙书(Dragon book)英文名:Compilers: Principles,Techniques,and Tools作者:Alfred V.Aho,Ravi Sethi,Jeffrey D.Ullman中文名:编译原理技术和工具2、虎书(Tiger book)英文名:Modern Comp...
分类:
其他好文 时间:
2014-07-26 17:12:11
阅读次数:
359
About the Book
To know more about programming, I have decided to start reading the famous Structure and Interpretation of Computer Programs (SICP, or the Wizard Book), which is first published by M...
分类:
其他好文 时间:
2014-07-26 15:32:35
阅读次数:
349
继承类的范围,构造函数和拷贝控制
当用派生类执行函数的时候,首先会在当前的类里面找
如果找不到就一级一级地往上找。
Name Lookup Happens at Compile Time
class Quote
{
public:
Quote()=default;
Quote(const string &book, double sales_price)...
分类:
编程语言 时间:
2014-07-26 15:29:42
阅读次数:
542
Angular对directive的定义是一段代码片段,你 可以用它来操作DOM使用directive可以实现事件的绑定module.directive( "addBookButton", [ 'Book', function( Book ) { return { restric...
分类:
其他好文 时间:
2014-07-24 22:17:12
阅读次数:
193
MySQL 加入?列,改动列,删除列ALTER TABLE:加入?,改动,删除表的列,约束等表的定义。查看列:desc 表名;改动表名:alter table t_book rename to bbb; 加入?列:alter table 表名 add column 列名 varchar(30); 删...
分类:
数据库 时间:
2014-07-24 14:42:45
阅读次数:
232
Problem Description
Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leave...
分类:
其他好文 时间:
2014-07-23 22:33:38
阅读次数:
281
Mongodb用户分为三种1、全局用户2、数据库对应用户3、只读用户查看所有的数据库>showdbs
admin0.078GB
book_blog0.078GB
local0.078GB
mydb0.078GB
newdb0.078GB
test0.078GB查看现有所有的有哪些用户,要切换到admin数据库中>useadmin
switchedtodbadmin
>db.system...
分类:
数据库 时间:
2014-07-23 21:23:26
阅读次数:
433
[译]wxPython布局管理简介https://www.pystack.org/wxpython_sizer/设计器、代码分离http://book.douban.com/review/5780362/使用wxFormBuilderhttp://www.cppblog.com/xkjy3000/a...
分类:
编程语言 时间:
2014-07-23 20:18:55
阅读次数:
234