The code of various administrative divisions is required for project implementation. recently, this requirement happened, so I searched the internet and shared it with you after testing, this article will share with you the sample code for capturing administrative code using Python. if you need it, you can refer to it for reference. let's study it with Xiaobian.
Study the encoding and find out the relationship between gb2312 encoding and location code.
Program .
Search, it seems that no one writes, so it is sent here.
Original starter:
Http://bbs.blueidea.com
Http://mytju.com/classcode/
Any reprint and use.
1. Brief Introduction
(1) gb2312 standard definition is actually a location
Using Python to capture administrative area code, python captures
Preface
The National Bureau of Statistics website has relatively consistent Administrative Code. For some websites, this is a very basic data, so I wrote a Python program to capture this part of the data.
Note:After capturing it, you need to organize it manually.
Sample
This article mainly introduces the location and size operations of the jQuery1.9.1 source code analysis series (13th). If you need such information, please refer to the following section for more information. Thank you!
JQuery.fn.css (propertyName [, value] | object) (the function is used to set or return the css style attribute values of the elements matching the current jQuery object. To delete a specifi
C # location Code and Chinese character conversionReprint please indicate from Zhu Zhu Homeland http://blog.csdn.net/zhgl7688The location code is represented by a four-digit number, the first two-digit area code (01 to 94), and th
Android uses the layoutParams code to dynamically layout the Space Location
Android development: LayoutParams usage
LayoutParams inherits from Android. View. ViewGroup. LayoutParams.LayoutParams is equivalent to a Layout information package, which encapsulates the location, height, width, and other information of Layout. Assume that a Layout occupies an
Document.documentElement.getBoundingClientRect
Here's an explanation of MSDN:
Syntax
Orect = Object.getboundingclientrect () return Value
Returns a Textrectangle object. Each rectangle has four integer properties (top, left, right, and bottom) which represent a coordinate of the rectangle, in Pixels.
Remarks
This is retrieves an object that exposes the left, top, right, and bottom coordinates of the union of rectangles Relat Ive to the client ' s Upper-left corner. In Microsoft Internet Explorer
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.