摘要:
由于 OS X El Capitan 采用了System Integrity Protection保护技术,导致 sudo pip install 安装python包时会产生报错:1 File "/System/Library/Frameworks/Python.framework/Versio... 阅读全文
摘要:
由于web.py默认没有打开调试,当出现错误时页面只返回了internal server error,缺少具体信息来定位问题原因。可以通过打开web.py的调试来获取具体错误信息:1 web.config.debug = True 阅读全文
摘要:
1 import socket 2 import platform 4 5 def getip(): 6 try: 7 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) 8 s.connect(('w... 阅读全文
摘要:
一、操作环境:树莓派Raspbian系统默认用户名:pi默认密码:raspberry假定局域网IP为 192.168.1.100二、SSH登录$ ssh pi@192.168.1.100$ 输入密码 raspberry三、远程上传文件$ scp pi@192.168.1.100:/home/pi/... 阅读全文