PJzhang: python advanced 10 basic courses -one

Cat Ning! ! !

 

Course Guidance

Beijing Institute of Technology

National quality online open courses

Zero-based, college-level

About line 100 python can do many things

Programming is basic skills, the experience of thinking

The relationship between the costs and benefits of time

5 hours per week

https://python123.io , practical projects

Online courses, online practice, offline data

Complete basic grammar system python

16 good practice cases

Assessment is not an end, but can detect the effectiveness of learning

Weekly exercises, periodic tests

Fragmented time full time +

With the progress, the practice of

Chairman Mao - On Practice

Programming capabilities near the body

Perceptual, rational learning

Various characters in the novel and in order of appearance frequency

wordcloud word cloud with the government work report

Computational thinking, computing ecosystem, user experience

Programming is routine

Eco-python

 

 

Section 1: python basic syntax elements

 

The basic method of programming IPO, input, process, output

 

Programmability: automatically, predictably and accurately in accordance with the operator's intention to complete the series of instructions

 

The device is not a computer can not be programmed

 

Moore's Law, Intel geometric progression computer speed

 

Programming languages: Simple, it is strictly prohibited, accurate, compared to natural language

 

Multi-language programming, much vitality

 

C language in 1972, python language in 1990

 

Source Codes (human readable), object code (expert machine)

 

Disposable convert source code into object code (compiled)

 

Source code into object code and one by one by performing (explained, similar to the simultaneous interpretation)

 

Static language, compile and run, run faster, the source code could not be found

 

Scripting language, interpreted, cross platform, easy to maintain

 

Algorithm is the soul of the program

 

Analysis of the problem --- --- demarcation design algorithm programming --- --- --- debug test upgrade and maintenance

 

Programming is a very interesting thing, abstract interactive, automated execution, computational thinking

 

Solutions, user experience, efficiency

 

Improve living and working efficiently to make money

 

Master the method, it is easy to program

 

Programming routines, giving top priority

 

windows,MAC,linux

 

python, python, PSF (python Software Foundation), open, open source development

 

Guido van Rossum, python authors, skilled

 

Python2 is not compatible in order to better develop python3

 

monty python TV

 

python123.io, python.org

 

Interactive (for practice), file programming

 

Calculating the area of ​​a circle, is calculated to 2 decimal places

 Create a file ceshi.py

Results and interactive still differences

 

 Making concentric circles

After each execution draw a circle, closed the program execution is completed

File form generated graphics and the same as above.

 

 Draw five-pointed star, tried it, in the form of a command line interaction can not draw success, you can file form

 

 

 United States and Britain and other countries use Fahrenheit, TemStr is variable, temperature accurate to two decimal places

 

 

 

 Within a single program, the same length of indentation, tab or four spaces and so can be

Naming variables can also occur Chinese

python identifiers defined within retention, 33, for example if, elif, the course will involve black, red does not involve

 

 

'123', 123, text and numbers

 Forward and reverse declining numbers incrementing number

 

 Line of code assignment is assignment of symbols, a variable is assigned for new data, the eval function evaluation can remove the outermost quotes

input, message string

 

TemStr [0: -1] is generated string

 

End of first quarter.

 

Guess you like

Origin www.cnblogs.com/landesk/p/11621296.html