python & OpenCV study notes day1 - python basic learning

**

python & OpenCV study notes day1 - python basic learning

**

Since the anaconda has been installed, so my main python learning is learning in the anaconda in the spyder compiler.

spyder compiler

During the study, the difficulties encountered first is to install python:

1. For me, it's white, do not know what platform or what uses python compiler.

2. Meanwhile, in the process of learning to see opencv in the course of the platform can be used python opencv language and have access, so using the compiler.

Download and install the configuration is complete, start learning basic programming python

python programming method is divided into interactive programming (using a compiler, run the program directly) and scripted programming (programming to create a script file)

The basic syntax:

1.print()

Printing feature to print in brackets

In parentheses: character content, calculated content

After-school thinking:

1.pyhton What kind of language?

Python is a widely used high-level programming language, belonging to general-purpose programming language.

What 2.IDLE that?

IDLE (Integrated Development Environment or IDE and learning environment) is a Python integrated development environment

3.Python said what multiplication symbols are?

‘ *’

4. Why >>> print ( 'I love fishc.com' * 5) can perform well, but >>> print ( 'I love fishc.com' + 5) but error?

5 and "i love fishc.com" character format is not the same

5. If I need to embed a double quotation mark in a string, the correct way is?

Single quotes

  1. Why should we use Python3? Python2 in the end what is the problem? Looks like a lot of programmers are still in use Python2?

  2. Try hands-direct input and input >>> 5 + 8 >>> print (5 + 8) What's the difference?

5 + 8 stored in the variable, print (5 + 8) is displayed

  1. In the interactive mode, calculate how many seconds a year using Python?

print(“Seconds of totall year =”)

print(2436560*60)

  1. Set your operating system environment variables, so you can easily enter the Python environment:
Released two original articles · won praise 0 · Views 21

Guess you like

Origin blog.csdn.net/weixin_43287834/article/details/104105558