摘要:
循环 python中的循环控制语句有for语句和while语句,可用来遍历某一对象。其中for语句附带的else块,主要用于处理for语句中包含的break语句 for循环 for语句的格式如下: for <> in <对象集合>: if <条件>: break else if <条件>: cont 阅读全文
摘要:
Scrapy的安装: 当前环境win10,python_3.6.4,64bit。在命令提示符窗口运行pip install Scrapy,出现以下结果: building 'twisted.test.raiser' extension error: Microsoft Visual C++ 14.0 阅读全文
摘要:
NameError: name “ ” is not defined 问题一:name ‘name’ is not defined "name"两端是双下划线"_",不是只有一个""。 问题二:name 'messagebox' is not defined “ ” 内为某个数据库的子module。 阅读全文