.


:




:

































 

 

 

 


Python




Python , Python, . Python IDLE , , , Python. , IDLE.

-, Python . :

>>> 1 + 1
2

>>> Python. . , , Python.

1 + 1 , , . Python. , ! , , . ( ↵ Enter), , .

2 . , 1 + 1 Python. , , 2.

.

>>> print('Hello world!')
Hello world!

, ? Python ! - , - , Python . help ↵ Enter.

 
>>> help  
Type help() for interactive help, or help(object) for help about object. help() help() .

. , Python. , Python, , , .

, help() ↵ Enter.

 
>>> help()  
Welcome to Python 3.0! This is the online help utility. Python 3.0! .
If this is your first time using Python, you should definitely check out the tutorial on the Internet at http://docs.python.org/tutorial/. Python , - http://docs.python.org/tutorial/[2].
Enter the name of any module, keyword, or topic to get help on writing Python programs and using Python modules. To quit this help utility and return to the interpreter, just type "quit". , , Python . , quit.
To get a list of available modules, keywords, or topics, type "modules", "keywords", or "topics". Each module also comes with a one-line summary of what it does; to list the modules whose summaries contain a given word such as "spam", type "modules spam". , , modules, keywords topics. ; , , , spam, modules spam.
help>  

, >>> help>. , . , , , Python .

   
help> print 1.  
Help on built-in function print in module builtins:   print builtins:
print(...)    
print(value,..., sep=' ', end='\n', file=sys.stdout)    
Prints the values to a stream, or to sys.stdout by default. Optional keyword arguments: file: a file-like object (stream); defaults to the current sys.stdout. sep: string inserted between values, default a space. end: string appended after the last value, default a newline.   sys.stdout ( ). :
  • file (), sys.stdout;
  • sep , , ;
  • end , , .
     
help> PapayaWhip 2.  
no Python documentation found for 'PapayaWhip'   Python PapayaWhip[3]
     
help> quit 3.  
You are now leaving help and returning to the Python interpreter. If you want to ask for help on a particular object directly from the interpreter, you can type "help(object)". Executing "help('string')" has the same effect as typing a particular string at the help> prompt.   Python. , help(). help('') , help>.
     
>>> 4.  
  1. print(), print ↵ Enter. man-: , , . , . .
  2. , . -, Python, , , .
  3. , quit ↵ Enter.
  4. >>>, , Python.

IDLE, Python, Python.





:


: 2016-11-18; !; : 823 |


:

:

.
==> ...

1363 - | 1200 -


© 2015-2024 lektsii.org - -

: 0.007 .