Novice Python---First day of study

Source: Internet
Author: User
Tags clear screen

Python is a cross-platform, open source, free , interpreted , advanced dynamic programming language that supports pseudo-compilation to convert source code into bytecode to optimize the program to speed up and keep the source secret, and to support the use of Py2exe, Pyinstaller, Cx_freeze or other similar tools package a Python program and all its dependent libraries into an executable program with an EXE extension that can be run independently of the Windows platform, and Python supports imperative programming, functional programming, and full support for object-oriented programming. There are a large number of mature extension libraries that support almost all areas of application development.

  If you want to write a Python program on your Android phone, you can install a QPython3 that supports python3.x or a QPYthon that supports python2.x

First, the use of idle

Idle is the official standard development interactive environment for python, where interaction patterns are typically used to implement simple business logic or to validate certain functions, and complex business logic is more accomplished by writing Python programs. When Python is installed, idle is installed by default. Shortcut keys used in idle :

Shortcut keys Function description
CTRL + Z Revoke
CTRL + A Select All
CTRL + C Copy
CTRL + V Sticky stickers
Ctrl+x Shear
Tab Complete Word, list all optional words for selection
Alt+p Browsing history commands (previous)
Alt+n Browse History commands (next)
Alt+3 Comment code block
Alt+4 Canceling code block comments
alt+/ Automatically complements words that have been previously seen, and loops through multiple words if there are multiple previous lists with the same prefix
Ctrl+f6 Restart shell, previously imported modules and defined objects are all invalidated
CTRL +] Indent code blocks
ctrl+[ Suppress code block indentation
F1 Open the Python help document

Idle No clear screen shortcut keys, can be extended through clearwindow.py, share the download link as follows:

Baidu Network disk Share link: Https://pan.baidu.com/s/1zzrMlPI8JSa7SWgTCWnBuA, password: 62MR

Store the clearwindow.py file in the Lib\idlelib folder in the Python installation path, and then notepad to open the file lib\idlelib\ Config-extensions.def, in the last add how several lines of configuration:

[ClearWindow]
Enable=1
Enable_editor=0
Enable_shell=1
[Clearwindow_cfgbindings]
Clear-window=<control-key-;>

Restart Idle, the corresponding menu appears this clear screen option to achieve clear screen

Ii. variables, operators, and expressions

Novice Python---First day of study

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.