11 2020 档案
摘要:原文链接:http://www.juzicode.com/archives/948 桔子菌:你听说过微软30多年前推出Windows的时候,隐晦表达过联通不行移动行么?橙子妹瞟了一眼桔子菌:瞎扯,我只听葛优说过“神州行我看行”。桔子菌有点炫耀:不可思...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/2258 错误提示: 提示在次级语句中和外层的缩进不匹配:IndentationError: unindent does not match any outer indentati...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/2238 错误提示: 在安装模块过程中提示:socket.timeout: The read operation timed out,并连续发生错误,pip._vendor.urlli...
阅读全文
Python错误集锦:The repository located at pypi.douban.com is not a trusted or secure host and is being ig
摘要:原文链接:http://www.juzicode.com/archives/2243 错误提示: 使用命令:pip install numpy -i http://pypi.douban.com/simple/ 安装模块时提示不是安全的主机: The repo...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/2225 错误提示: 使用numpy.eye()函数时报NameError: name ‘numpy’ is not defined D:\juzicode>python mod.py...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/2228 错误提示: 导入numpy模块,调用模块内的eye()函数,提示: Traceback (most recent call last): File “test.py”, ...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/2223 错误提示: 运行解释器,在提示符下面输入“python py文件名称”,提示“SyntaxError: invalid syntax”。 >>> python hello.p...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/2217 错误提示: 修改tuple时,提示TypeError: ‘tuple’ object does not support item assignment 可能原因: 1、tu...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/2208 错误提示: 在循环语句中提示语法错误:for x in range(5) ^ SyntaxError: invalid syntax 可能原因: 1、for语句的最后和...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/2201 错误提示: 运行py文件,提示:IndentationError: unexpected indent,提示在第3行遇到非预期的缩进。 可能原因: 1、同一个层级的代码...
阅读全文
摘要:错误提示: 在命令行输入python py文件名称,提示:python: can’t open file ‘hello’: [Errno 2] No such file or directory D:\juzicode>python hellopython: ...
阅读全文
Python错误集锦:File “hello.py”, line 3 SyntaxError: Non-UTF-8 code starting with ‘\xbd’ in file hello.py
摘要:错误提示: 运行py文件,提示 SyntaxError错误: File “hello.py”, line 3 SyntaxError: Non-UTF-8 code starting with ‘\xbd’ in file hello.py on line 3...
阅读全文
摘要:错误提示: 在cmd窗口输入pip install xyz,提示:“ ‘pip’ 不是内部或外部命令,也不是可运行的程序或批处理文件。 ” D:\juzicode>pip install 2to3'pip' 不是内部或外部命令,也不是可运行的程序或批处理文件...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/2157 错误提示: 在cmd窗口输入python,提示“ ‘python’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。 ” D:\juzicode>python 'pyt...
阅读全文
摘要:如果以为密码存储在程序中,不会被窥探,你就大错特错了。 下面是一个在代码中明文存储密码的例子: //vx:桔子code;juzicode.com#include #include using namespace std;int main (int argc, ...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/814 'you.see(me) or not you.see(me)'if you.see(me) or not you.see(me): me = me me.sadn...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/1938 桔子菌前面给大家介绍了怎么用Python收发邮件( smtplib发送邮件、pop3接收邮件 ),今天准备借助邮箱做中转,用家里的电脑拍摄照片发往邮箱,再用手机邮箱查看照片。...
阅读全文
摘要:原文链接: http://www.juzicode.com/archives/934 提到马里奥不知道会勾起多少人年少时的回忆,桔子哥小时候经常会和小伙伴们跑到安装了电视机的邻居家里去看电视,有一天中午到他家里的时候,看到的电视画面和往常却不一样,地上坐着的2...
阅读全文
摘要:在 Python进阶教程m9b–网络通信–smtplib发送邮件 一文中桔子菌给大家介绍了怎么用Python发送邮件,俗话说“来而不往非礼也”,有发就要有收,这篇文章将带大家熟悉下怎么用poplib和email模块接收邮件。 先做好准备工作,仍以163邮箱为例...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/1750 在看Python标准库文件或他人写的Python模块时,经常看到py文件最后有这样一段代码: if __name__=='__main__': 'do some...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/843 在 Python进阶教程m10–多线程 和 Python进阶教程m10b–多线程通信 我们介绍了多线程编程,并行编程模式中还有一种多进程编程模式,这篇文章将介绍到多进程编程。 ...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/1499 在 《Python进阶教程m7b–混合编程–C语言接口ctypes(1)》中讲到封装C函数时的argstype ,以及在《Python进阶教程m10–多线程》 中讲到创建线...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/1501 在《Python进阶教程m10–多线程》中我们介绍了多线程的基本编程模型,文中例子多线程之间独立运行,主线程也只有在创建子线程的时候传递过函数入参,想在主线程中查询子线程某个...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/841 在《Python进阶教程m9–网络通信–socket通信》中我们实现了一个socket服务端和客户端通信的例子,这个例子中服务端需要等待客户端发送消息后才能返回消息给客户端,在...
阅读全文
摘要:原文链接:http://www.juzicode.com/archives/1468 孔乙己显出极高兴的样子,将两个指头的长指甲敲着柜台,点头说,“对呀对呀!……Windows命令行启动有四种方法,你知道么?”我愈不耐烦了,努着嘴走远。孔乙己刚用指甲蘸了酒...
阅读全文

浙公网安备 33010602011771号