原创 hdu1166 敵兵佈陣
大意: 在給定區間修改某一點的值,然後查詢某一個區間的和; 思路: 分塊; 如果包含整區間的話,那就直接加上整個區間的值;否則暴力累加每一個點的值; #include <bits/stdc++.h> using namesp
原创 Tkinter _event
#test for three event in Tkinter : command ,bind, protocol from Tkinter import * import tkMessageBox root = Tk()
原创 2017ACM/ICPC廣西邀請賽 K- Query on A Tree trie樹合併
轉載自:http://www.cnblogs.com/zxhl/p/7459240.html Problem Description Monkey A lives on a tree, he always plays on th
原创 康託展開
文字及圖轉自:http://www.cnblogs.com/1-2-3/archive/2011/04/25/generate-permutation-part2.html 代碼轉自:http://blog.csdn.net/sy
原创 樣式重置 css reset
原地址:http://www.cnblogs.com/HtmlCss3/p/6061623.html 新浪的初始化: html,body,ul,li,ol,dl,dd,dt,p,h1,h2,h3,h4,h5,h6,form,fields
原创 正則表達式Reguler Expression (with python re)
在Python中需要通過正則表達式對字符串進行匹配的時候,可以使用一個模塊,名字爲re //‘match’ scan a string start from the very left,if it not match,it will b
原创 simple dynamic web server with self defined framework (python)
The framework import time from test1 import HTTPServer class Applicatoin(object): def __init__(self,urls):
原创 Web static server
from socket import * from multiprocessing import Process import re def fun(client_socket): documentRoot = './Html'
原创 setTimeout:pop a window
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=d
原创 TCP_client and server in py
The client: from socket import * clientscoket = socket(AF_INET,SOCK_STREAM) clientscoket.bind(("",4568)) clientscoket.
原创 async in multiprocess_pool
from multiprocessing import Pool import time import os def test(): print('---the process in pool---pid = %d,ppid =
原创 udp_socket with thread to contect with each other
from threading import Thread from socket import * def sendinfo(): while True: sendinfo = input('<<')
原创 picture_info demo of transition in css
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=d
原创 news_list
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=
原创 Different types Server in Python
multiprocess(The almost same as threading) from socket import * from multiprocessing import * from time import sleep d