python远程唤醒
#!/usr/bin/python
from socket import socket, AF_INET, SOCK_DGRAM, SOL_SOCKET, SO_BROADCAST
data = b'\xFF\xFF\xFF\xFF\xFF\xFF' + b'\xaa\xbb\xcc\xdd\xee\xff' * 16
#aabbccddeeff为mac地址
sock = socket(AF_INET, SOCK_DGRAM)
sock.setsockopt(SOL_SOCKET, SO_BROADCAST, 1)
sock.sendto(da...
Python Can't connect to HTTPS URL because the SSL module is not available.
环境:
macOS Catalina
现象:
pip install --upgrade pip
遇到错误以下错误
Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/43/84/23ed6a1796480a6f1a2d38f2802901d0...
爬虫 嘿嘿
爬某大学所有学生照片
#-*- encoding:utf-8 -*-
import requests
from urllib import request
a = "0"
for xueyuan in range(1,30):
if xueyuan < 10 :
xueyuan = '0{}'.format(xueyuan)
for zhuanye in range(1, 5):
if zhuanye < 10:
zhuanye = '0{}'.format(zhuanye)
for banji in ...