左耳的博客

设置背景图片

远程唤醒

远程唤醒
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...

爬某大学所有学生照片

爬某大学所有学生照片
#-*- 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 ...