当我在cmd中运行var obj = { a: true, b: false };
%HasFastProperties(obj); // true (Fast mode)
// add lots of properties
for (var i = 0; i < 100; i++) {
obj["prop" + i] = i;
}
%HasFastProperties(obj); // false (Dictionary mode)
或python -m SimpleHTTPServer 8000
时,出现此错误:
没有名为SimpleHTTPServer的模块
或
没有名为CGIHTTPServer的模块
有谁知道为什么会这样或者测试python cgi-scripts的其他方法?