Вот и подошёл к концу наш конкурс! Поздравляем победителей!!! Подробнее.

Проект Programmers.kz и школа hotPen3D2D предлагает Вам курсы по веб-дизайну, веб-программированию и компьютерной графике. Подробности здесь.

 
Информация к новости

Уроки Python

Категория: Программирование » Python » Уроки Python

Содержание

Информация к новости

Предисловие

Категория: Программирование » Python » Уроки Python

Предисловие
Информация к новости

3.16. Summary

Категория: Программирование » Python » Уроки Python

Summary
Информация к новости

3.15. Putting it all together

Категория: Программирование » Python » Уроки Python

Once again, all the dominoes are in place. We've seen how each line of code works. Now let's step back and see how it all fits together.
Информация к новости

3.14. The os module

Категория: Программирование » Python » Уроки Python

The os module has lots of useful functions for manipulating files and processes, and os.path has functions for manipulating file and directory paths.
Информация к новости

3.13. More on modules

Категория: Программирование » Python » Уроки Python

Modules, like everything else in Python, are objects. Once imported, you can always get a reference to a module through the global dictionary sys.modules.
Информация к новости

3.12. for loops

Категория: Программирование » Python » Уроки Python

Like most other languages, Python has for loops. The only reason you haven't seen them until now is that Python is good at so many other things that you don't need them as often.

Most other languages don't have a powerful list datatype like Python, so you end up doing a lot of manual work, specifying a start, end, and step to define a range of integers or characters or other iteratable entities. But in Python, a for loop simply iterates over a list, the same way list comprehensions work.

Информация к новости

3.11. File objects

Категория: Программирование » Python » Уроки Python

Python has a built-in function, open, for opening a file on disk. open returns a file object, which has methods and attributes for getting information about and manipulating the opened file.
Информация к новости

3.10. Handling exceptions

Категория: Программирование » Python » Уроки Python

Like many object-oriented languages, Python has exception handling via try...except blocks.
Информация к новости

3.9. Private functions

Категория: Программирование » Python » Уроки Python

Like most languages, Python has the concept of private functions, which can not be called from outside their module; private class methods, which can not be called from outside their class; and private attributes, which can not be accessed from outside their class. Unlike most languages, whether a Python function, method, or attribute is private or public is determined entirely by its name.
Назад Вперед