Python Numeric Type and Sequence Type

value type # NUMERICAL TYPES Integer int Floating-point float A. real a. imag. A method for complex type complex to view real and imaginary parts Boolean type bool Viewing Data Types Using type Functions #Integer type a = 3 print(type(a)) <class 'int'> #Floating Point Types a = 3.0 prin ...

Posted on Thu, 18 Jul 2019 18:31:46 -0700 by testtesttesttest

3. List, tuple of Python object types

Basic object types for python In python, everything is an object, and you may not understand the meaning of this sentence yet, but from now on, what we are about to touch is the object of python, which has types. Python defaults some object types int integer Floating-point numbers (think of them as decimal numbers without going into depth) ...

Posted on Thu, 06 Jun 2019 09:59:37 -0700 by elecktricity

Matplotlib Drawing Course (Advanced 2D)

1. Introduction to the experiment 1.1 Experimental Contents Matplotlib is an open source drawing library supporting Python language. Because it supports rich drawing types, simple drawing methods and perfect interface documents, it is loved by Python engineers, scientific researchers, data engineers and other people. This is Chapter ...

Posted on Mon, 27 May 2019 16:49:25 -0700 by wolves

List based on python

List: We introduce a new concept: data organization: Data structure is a collection of data elements organized in some way, which can be numbers or characters. Even other data structures > In python, the most basic data structure is the sequence, each element in the sequence. Plaques are assigned an ordinal number -- the lo ...

Posted on Sun, 19 May 2019 11:15:29 -0700 by bobbybrown

Explanation of python's four major functions

Python's four functions: 1. General functions 2. Default function 3. Keyword function 4. Collecting parameters   1. General function a. Define variable names directly when defining b. Place variables or values directly in the specified location when invoking        def function name (parameter 1, parameter 2...): Function ...

Posted on Fri, 17 May 2019 18:26:29 -0700 by backinblack

Python Data Analysis Chapter 1

Python Data Analysis Chapter 1 Introduction to Python Library First, look at a brain map that depicts data analysis software. Brain Map of Data Analysis Software Various databases, data analysis, data processing and data visualization. 1.1 Software for Books 1.2 Install NumPy, Scipy, matpllotlib and IPthon through source code ...

Posted on Tue, 14 May 2019 23:46:15 -0700 by Capnstank

django2 Actual Warfare 3. Examination of Model Additions and Deletions

Following Up django2 Actual 2. Creating Blog Applications django uses ORM mode to manipulate data, which abstracts the changes of database into calls to object methods. Developers only need to call related methods instead of writing sql statements. Using an interactive shell Enter the interactive shell environment (ipython is recom ...

Posted on Fri, 10 May 2019 16:49:23 -0700 by Brunda

Common pits in python language (continuous updates)

1. Do not use mutable objects as function defaults The code is as follows: In [1]: def append_to_list(value, def_list=[]): ...: def_list.append(value) ...: return def_list ...: In [2]: my_list = append_to_list(1) In [3]: my_list Out[3]: [1] In [4]: my_other_list = append_to_list(2) In [5]: my_other_list ...

Posted on Wed, 24 Apr 2019 14:09:35 -0700 by Tory

Python Learning Notes: Operation of Strings on Day 4

Catalog 1. python data type 2. Operation of type int 3. bool type 4. String operation 5. for cycle 1. python data type int integer str Character string. Normally, you don't use strings to store large amounts of data. bool Boolean value: True and False list Can store a large amount of data (can be arbitrary data type) dict Dic ...

Posted on Mon, 28 Jan 2019 00:39:15 -0800 by ntroycondo

Python for Data Analysis v2 | Notes_ Chapter 3 Python Data Structure, Functions and Files

I use Sean Cheney series of special articles and original books as learning resources to record personal notes, which are only used for knowledge recording and later review. The address of the original author is checked. Sean Cheney If there are any mistakes, criticism and advice are also expected. -- ZJ Original Au ...

Posted on Wed, 26 Dec 2018 11:39:07 -0800 by aim25