This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- project : LolMatchLeader | |
-- author : younger.shen | |
-- filename : LolMatchLeader.lua | |
-- filepath : /C/Users/Administrator/Desktop/LolMatchLeader.lua | |
[[ | |
该程序用来确定某一个lol队伍的leader. | |
请求格式: | |
/?gameid=xxx&server=xxx&teamid=xxx&player=xxx | |
返回格式: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup | |
import urllib | |
import os | |
import re | |
qvod_link_reg = re.compile(ur'qvod://[0-9]{9}\|[A-Z0-9]{40}\|[\u4e00-\u9fa50-9]+\.') | |
main_url = 'http://www.qvodzy.me' | |
def matchURL(url): | |
res = urllib.urlopen(url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pygame | |
from pygame.locals import * | |
import pygame.surfarray as surfarray | |
def init(): | |
pygame.init() | |
screen = pygame.display.set_mode((500,500)) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import urllib | |
import string | |
def parseUrl(baseUrl): | |
urlContent = [] | |
f = urllib.urlopen(baseUrl) | |
buffer = '' | |
for line in f.read(): | |
buffer += line |
NewerOlder