• Django 1.8 official document translation: 8-5 encrypted signature


    Encrypted signature The golden rule of web application security is never trust data from untrusted sources. Sometimes it’s very convenient to transfer data through untrusted media. The value after the password signature can be passed through an untrusted way, which is secure, because any tampering will be detected. Django provides the underlying API for signature […]

  • Python interview FAQs


    What is Python? It can be compared with other languages in the answer. firstPythonIt’s an interpretive language. AndCLanguage andCPython code does not need to be compiled before it runs. Other interpretative languages includePHPandRuby。PythonIt is also a dynamically typed language, which means that you do not need to specify the type of a variable when you […]

  • Optimizing PostgreSQL autovacuum


    Author: laurenz albe is a senior consultant and support engineer at cybertec. He has been working on and contributing to PostgreSQL since 2006. Lei Yanliang, a PostgreSQL database technology enthusiast, 10g & 11g OCM, Ogg Certified Expert, works in Hangao basic software Co., Ltd. In many PostgreSQL databases, you don’t have to think about or […]

  • [Python] – 4-tuple list and dictionary


    introduction This article introduces three kinds of combined data types in Python, and the second half of the article describes how to use “fragmentation” to extract data from these combined data types. Contents of articles 0 × 1. Tuple0 × 2. List0 × 3. Dictionary0 × 4. Examples of data fragmentation 0 × 1. Tuple […]

  • Translation: practical Python Programming 02_ 04_ Sequences


    Contents | previous section (2.3 formatting) | next section (2.5 collections module) 2.4 sequence Sequence data type Python has three types of sequential data. String: such as’Hello’. A string is a sequence of characters List: such as[1, 4, 5]。 Tuple: such as(‘GOOG’, 100, 490.1)。 All sequences are ordered, indexed by integers, and of length. a […]

  • Python basic data type list tuple dict set


    Python basic data type – list tuple dict set data type Representation method characteristic list The list is shown in square brackets: [] A list is an ordered collection in which elements can be added and deleted at any time. The difference between C + + array and C + + array is that the […]

  • Some usages of dataframe


    Some usages of dataframe in pandas Pandas reading excel file pd.read_excelThe prerequisite is to install the xlrd library Conversion between dataframe, numpy and list Dataframe to numpy: dataframe object. Values Dataframe to list: dataframe object values.tolist () List to numpy: np.array (list object) List to dataframe: pd.DataFrame (list object) Numpy to list: numpy object. Tolist […]

  • Swift personal learning notes – 02: basic content


    This article is purely a Chinese version《The Swift Programming Language》So most of the content is in the article. This article is my study notes, not a formal and systematic record. For reference only There are still a lot of incomprehensible and uncertain points below, which I will point out with “doubtful” notes. Thanks to the […]

  • Python zip function and usage


    Zip() function is one of the built-in functions in Python. It can compress multiple sequences (list, tuple, dictionary, set, string and range() interval) into a zip object. The so-called “compression” is actually to recombine the elements at the corresponding positions in these sequences to generate new tuples. Unlike Python 3. X, the zip() function in […]

  • Python tuple, list loop traversal


    Loop traversal Loop traversal, as the name suggests, is to loop the list / tuple, output the content in the process of the loop, and read out the content of the list / tuple from beginning to end. for item in info:print(itme) #The loop operates on tuple elementsIn Python, you can use the for loop […]

  • 03python – 9 basic knowledge – introduction series of Python Xiaobai


    “Introduction to Python Xiaobai” column, chapter 03 Text XC_ seven hundred and eighteen Deep good article: 1828 words | 4 minutes reading ​ 1. Notes 1) Single line comment:# #Note content print(‘123’) #123 print(‘abc’) #abc print(“abc”) #abc  2) Multiline comment:”’Or“”” (1) The first annotation method ”’   code   code   … ”’ (2) The second way of […]

  • Python high-order function use summary! Understand Python data structure and improve data quality (2)


    The text and pictures of this article are from the Internet, only for learning and communication, and do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time The following article is from Tencent cloud by Yu Liang Do not reverse by defaultSort […]