程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python (I)

編輯:Python

Python characteristic :1、python It's a completely object-oriented language .

  1. python Has a strong library of standards .
  2. python The community provides a large number of third-party modules .

Python Advantages and disadvantages :

Python The advantages of :1、 Simple 、 studies of the Book of Changes .

  1. free 、 Open source .
  2. object-oriented .
  3. Rich library .
  4. Extensibility .

........

Python The shortcomings of :1、 The running speed is not ideal .

  1. The domestic market is smaller .
  2. Lack of Chinese materials .

Python The basic concept of source program :

  1. python The source program is a special format text file , You can use any text editing software to do python Development of .
  2. python The file extension of a program is usually .py.

Python Novice error for :1、 Hand error .

2、 There will be more than one print Write in a line .

  1. The indentation error .

            Be careful :python Is a very strict format programming language , For now , Do not precede each line of code with a space .

Python notes : Use... For single line comments #.

             Multi line comment “““””” Or three single quotes .

Arithmetic operator :

Priority of arithmetic operators :1、 First multiply, then divide, then add or subtract .

  1. Sibling operators are evaluated from left to right .
  2. have access to () Adjust the priority of the calculation .

The arithmetic priority is arranged from high to low :


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved