I. Development environment
(1) Win10
(2) Python 2.7
(3) Pycharm
Second, the class that saves data to Excel
Import XLWT class Savaballdate (object): Def __init__ (self, items): Self.items = Items self.run (self. Items) def run (self,items): fileName = U ' shuangse qiu. xls '. Encode (' GBK ') book = XLWT. Workbook (encoding= ' UTF8 ') sheet=book.add_sheet (' Ball ', cell_overwrite_ok=true) sheet.write (0, 0, u ' lottery Date '. E Ncode (' UTF8 ')) sh
value
LinenumVar $ xml = new ActiveXObject ("microsoft. xmldom ");$ Xml. load (Server. MapPath ('config. xml '));Var using childnodesusing using xml.doc umentElement. selectSingleNode ('// siteconfig'). childNodes
For ($ e = new Enumerator ($ childNodes );! $ E. atEnd (); $ e. moveNext ()){Eval ($ e. item (). nodeName + "= $ e. item (). text ");}$ Xml = null;Response. Write (sitekeywords );%>
3. dynamically include files3.1 VBScript dynamic File Inclusion
LinenumFunction fInclude (filepath)'Sam
Note:
Recently, I plan to refine my Javascript code, so I have to temporarily discard the original good VBScript and fully use Jscript/Javascript.
We found that both VBs and Js have some functions that are not available on both sides...
For example, Js does not have the formatNumber and formatN *** class functions of VBs.
However, regular expressions are available almost everywhere in Js. This is my strength and attracts me. Unlike VBs, only RegExp can use regular expressions in the domain.
Ref
Use JavaScript HTML Dom to highlight specific words on the page by shawl. Qiu
Note:This is mainly used in the search results to highlight related words.
This function was mainly written a few days ago in the csdn community JS version of a netizen had such a demand, when the grass wrote a simple function to highlight the page specific words.
However, it was found that this function was very good, so I just wanted to improve it later.The final res
Common JavaScript Object enumeration method by shawl. Qiu
Note:I have been learning Js for some days. So far, I have basically read all the core JS and client JS methods.During this period, we got such a template that can quickly understand the method of a specific object on the client, and formatted the highlighted and sorted content, which is the content of the following body.
Shawl. Qiu2006-11-20Http://blog.csdn.net/btbtd
Common JavaScript Ob
The Shuangse Qiu number of the welfare lottery is made up of 6 red ball numbers and a basketball number, of which 6 red ball numbers are randomly drawn from 01 to 33 6 digits, and 1 basketball numbers are randomly drawn from 01 to 16. 6 red ball numbers are usually arranged in a small to large order. The following is a way to generate a note shuangse Qiu number in JavaScript for your reference!
var red
1999, Beijing Wind into the Pine bookstore. When I turned to the "Silicon Valley War" book, I saw the author as Robin Li and put it down. I don't know Robin Li, I don't believe a Chinese can know anything about Silicon Valley, think it's a book with scissors and paste.
2000 Winter, Beijing CD bar. I as a "computer world" reporter should invite to participate in Baidu year-end media thank you. The last show
Qiu zongyan: Evaluate expressions in C/C ++ I often see the following questions in some discussion groups: "Who knows what value the C statement assigns to n ?"M = 1; n = m ++ M ++;Recently, an unfamiliar friend sent me an email asking why two 4 expressions are printed in a C ++ system, instead of four and five:A = 4; cout C ++ is not a rule To understand this, you need to understand the following problems: Program A variable (via assignment, increme
Shawl. Qiu Javascript
CodeFormatting class/Styler, styleengine V1.1
Note:V1.1 is completed only in V1.0 as plannedSupports CSS,There are no other differences, so we will not introduce them.
However, it should be noted that,Since CSS is generally only a level {}However, you can also define... In the @ media parameter...For efficiency reasons, the publisher does not consider the latter's definition, that is, does not consider embedded {}.Alternative
Shawl. Qiu Javascript
CodeHighlight class, highlights/highlightengine v1.2
Note:Previously I used js to write a syntax highlighting tool, but there is no way to customize parameters, and the matching is not very rigorous...Therefore, I have long thought about rewriting one. However, due to time problems, I have never started it...
The current plan is:CSS implementation with V1.0V1.1 implement JavascriptV1.2 implement tagV1.3 VBScriptPHP implementat
Automatically add URL/email link by shawl. Qiu to JavaScript strings
Note:In fact, I have written at least 10 codes for automatically appending URL/Email links.Until recently, I learned about JS xiaocheng and made a perfect Dom solution, but I can add links without errors.But the problem always occurs. Although the DOM method can be used to add links without errors, the indent format is lost ....This is fatal, so it overwrites a record that won't lose
return to the plain. Just like the colorful glow of the day, although so beautiful and charming, but not long, the twinkling of an eye will disappear without a trace, return to the true. Looking back, in such a process of life, we need to have a normal heart to treat gains and losses and joys with a detachment of mind, so that we can have a deeper understanding of these beautiful things, I feel more profound and cherished. As night falls, street lights are lit up and the whole city is quiet an
Crawl Shuangse Qiu Historical data
Crawl Address: http://baidu.lecai.com/lottery/draw/list/50
Required Package: BeautifulSoup Install
The script is generated after the data JSON is processed to exist in the file
#-*-Coding:utf-8-*-
import urllib
import re
import JSON from
BS4 import beautifulsoup
li = []
For year in range (2003, 2015):
print year
Htmlcon = Urllib.urlopen (' http://baidu.lecai.com/lottery/draw/list/ 50?d=%s-01-01 '% year)
the original problem.three. Application scenarios for divide-and-conquer algorithmsThe problems solved by using the divide-and-conquer strategy generally have the following characteristics:(1) The original problem can be decomposed into multiple sub-problems these sub-problems are compared with the original problem, but the scale of the problem is reduced, and the structure and solution method are the same or similar to the original problem.(2) The original problem in the decomposition process,
2015 Geek Park Innovation Conference held in Beijing, the conference attracted a lot of technology talent, the participation of geeks, it is worth mentioning that Baidu CEO Robin Li also guest park, and share with the participants Baidu's technical beliefs. In fact, this is the third consecutive year of Li's participation in the event, which shows that Li is very willing to communicate and communicate with technical geeks, sharing the Internet industr
B. Robin HoodTime limit per test1 secondMemory limit per testMegabytesInputStandard inputOutputStandard output
We all know the impressive story of Robin Hood. Robin Hood uses his archery skills and he wits to steal the money from rich, and return it to the poor.
There is n citizens in Kekoland, with each person having CI coins. Each day,
The php implementation code of the roundrobin weight round robin algorithm, roundrobin. The php implementation code of the roundrobin weight round robin algorithm. roundrobin first carries the code and uses the php script language php ** Copyright (C) FatHong ** for data initialization. weight: weight * $ hosts [a] a round robin weight round
This article mainly introduces how to use the setInterval () function in JavaScript to implement simple round-robin operations. It analyzes the principle of round-robin operations and javascript implementation skills in the form of examples, for more information about how to use the setInterval () function to perform simple round robin, see the example in this ar
This article mainly introduces how to use the setInterval () function in JavaScript to implement simple round-robin operations. it analyzes the principle of round-robin operations and javascript implementation skills in the form of examples, for more information about how to use the setInterval () function to perform simple round robin, see the example in this ar
Round robin CalendarI. Problem-DescribingThere are n=2^k athletes, to play a tennis round robin. Now to design a match schedule that meets the following requirements(1). Each player must match one of the other N-1 players(2). Each player can only race once a day(3). Round robin for a total of n-1 daysTwo. Problem analysisAccording to this request, the contest sch
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.