scripting language (Scripting language):
is a computer programming language that can do complex things quickly in a simple way, so Python is easier than C, C + +, Java and other programming languages.
Scripts can automate interactive operations that were originally done with the keyboard, and users can use scripts to combine some common operations into a single set of serial, easy to operate.
IDLE:
Idle is the basic IDE for Python programs (integrated development environment) with basic IDE functionality for basic Python development.
Idle is a shell (shell), a Windows-like CMD window, a way to interact with a program by typing text
After opening the interface, the following code appears,>>> for Python is ready to enter code, similar to MATLAB
Python 3.4.4 (V3.4.4:737efcadf5a6, Dec, 20:20:57) [MSC v.1600-bit (AMD64)] on Win32type "copyright", "credits" or "license ()" For more information.>>>
Print:
Correct code: No ";" Number at the end
>>> print ("Hello world!") Hello world!
>>> print (2+3) 5>>> 2+35>>> 987*123121401
>>> print ("I love" + "You") I loveyou>>> print (' I love ' + ' you ') I love You
>>> print ("I love your" *8) I love you I love you I love you I love you I love you I love you I love you I love you >>> print ("I love you\n" *8) I love YouI love YouI love YouI love YouI love YouI love YouI love YouI Love
Error code:
#python2系列中可以使用, but error >>>print "Hello world!" in Pyhton3 series Syntaxerror:missing parentheses in call to ' print '
#C语言输出函数 >>> printf ("Hello world!") Traceback (most recent): File "<pyshell#5>", line 1, in <module> printf ("Hello world!") Nameerror:name ' printf ' is not defined
#python中不能将两个不同类型的东西加在一起, but you can use multiplication for strings to represent repetition >>> print ("I Love You" +8) Traceback (most recent call last): File "< Pyshell#14> ", line 1, in <module> print (" I Love You "+8) Typeerror:can ' t convert ' int ' object to str implicitly
This article is from the "loved to Tease" blog, please be sure to keep this source http://xcd137034181.blog.51cto.com/10806881/1746438
"Little Turtle" 001 first knowledge of Python