Problem:Start Python prompt error:IDLE ' s subprocess didn ' t make connection. Either IDLE can ' t start a subprocess or personal firewall software is blocking the connection.Reason:That's usually means that your firewall was blocking IDLE, so enable it in your firewall. If that's doesnt work, does this to fixIt (with some disavantages):Workaround:1. Open c:/pyt
. There are also shortcut keys in the shell, which are also convenientALT+DG to the error line first, press this shortcut to quickly navigate to the wrong locationAlt+ds directly show the error history, find the source, convenient AHAlt+da if every time to press, is not convenient, press this, after the mistakes are historyALT+DD Open the Debugging window, enter the single-step debugging, convenient.Ctrl+f6 to empty the previous import record, and so on, restart the shellIt's also worth noting t
1. Under Python\lib\idlelib, create a new clearwindow.py file (new when not created) with the following content:"" "Clear Window extensionversion:0.2author:roger D. Serwy [Emailprotected]date:2009-06-14it provides" Clea R Shell Window "under" options with ability to undo. Add these lines to config-extensions.def[clearwindow]enable=1enable_editor=0enable_shell=1[clearwindow_cfgbindings ]clear-window=2.python
Believe that just into the path of Python learning, are still quite like the python comes with the idle, but the white Code background color and other code color really let people look a bit uncomfortable, so at that time also thought can give it to change color, this of course, nonsense not to say, direct cut into the topic:It's mine, let's finish reading and se
After ActivePython is installed, the Python Idle window cannot be opened or uninstalled. activepythonpython
1. I wanted to find a good PythonIDE development environment so I installed the ActivePython development utility. I found that the software could not be opened and the Python environment on the machine could not be used, there are few online solutions... R
When editing the status:
CTRL + [, CTRL +] indentCodeAlt + 3 alt + 4 comment, uncomment the code lineAlt + 5 alt + 6 switch indent mode space Alt +/the word is completed. Once it appears in the text, it can be automatically completed. Multiple times can be selected cyclicallyAlt + M open the module code, select the module first, and then press this shortcut key to help you open the py source code for viewing the moduleAlt + C open a browser to switch between methods in the source code fileAlt +
first, press this shortcut to quickly navigate to the wrong locationAlt+ds directly show the error history, find the source, convenient AHAlt+da if every time to press, is not convenient, press this, after the mistakes are historyALT+DD Open the Debugging window, enter the single-step debugging, convenient.Ctrl+f6 to empty the previous import record, and so on, restart the shellIt's also worth noting thatAlt+n Alt+p can find previously entered commands to complement the current commandCTRL + AR
1. Running Cmd--regedit2, find ' hkey_classes_root\systemfileassociations ', click Open Folder, look down to see if there is '. Py ' folder3, directory search . py, if not, create a new item . Py-->shell-->edit-->command4. Create the item in turn, and modify the dataShell and edit data values for edit with IdelSet the 'command' key value to:c:\python3\pythonw.exe c:\python3\Lib\idlelib\idle.pyw-e%1 (in the format path to \lib\idlelib\idle.pyw in Pythonw.exe path
first, press this shortcut to quickly navigate to the wrong locationAlt+ds directly show the error history, find the source, convenient AHAlt+da if every time to press, is not convenient, press this, after the mistakes are historyALT+DD Open the Debugging window, enter the single-step debugging, convenient.Ctrl+f6 to empty the previous import record, and so on, restart the shellIt's also worth noting thatAlt+n Alt+p can find previously entered commands to complement the current commandCTRL + AR
When editing a state:CTRL + [, CTRL +] indent codeAlt+3 alt+4 Comment, uncomment the line of codealt+5 alt+6 Toggle Indent mode space alt+/word completion, as long as the text appears, you can help you automatically complete. Press multiple times to cycle through the selectionAlt+m Open the module code, first select the module, and then press this shortcut, will help you open the module of the PY source for browsingAlt+c open the class browser to facilitate switching between the various method b
The same key is not allowed to appear two times in Python. When created, if the same key is assigned a value of two times, the latter value is remembered, as in the following example: Dict1 = { " name ": " runoob , " age ": 7, " name ": " Young rookie " } Print ( " dict1[' Name ']: ", Dict1[" name " Span style= "COLOR: #800000" > "]) If it is pycharm (Community edition v3.4.4), then Pycharm will have a hint: Dictionary contains du
Many times, we use Python without having to write a program, some uncomplicated tasks, and I prefer to enter a few lines of code in IDLE (that is, interactive cue mode). However, in this mode to edit the code, there are not convenient places, the most important thing is, can not use the tab automatic completion, can not remember the last input command (no way, who let us in the shell accustomed to it).At th
Example of installing the HTTPLIB2 module1 Download ModuleDownload a compact Package "Httplib2-0.4.0.zip" for You in "https://code.google.com/p/httplib2/"2 Unzip the downloaded compressed package "Httplib2-0.4.0.zip" to a directory3 Configuring Python's operating environment under DOS(Before you need to configure the system environment variables, add the Python installation directory after the system environment variable path, such as c:\python2.7)4 d
Example of installing the HTTPLIB2 module1 Download ModuleTo "https://code.google.com/p/httplib2/" to download a suitable compression package "httplib2-0.4.0.zip" This should not beGo to Github:https://github.com/jcgregorio/httplib2Https://pypi.python.org/pypi/httplib2#downloads here are "Httplib2-0.9.zip" and "httplib2-0.9.tar.gz".2 Unzip the downloaded compressed package "Httplib2-0.4.0.zip" to a directory3 Configuring Python's operating environment under DOS(Before you need to configure the s
Use vim to create your own python editor and vimpython EditorBasic Configuration
The vim configuration is in the user's main directory.~ /. VimrcFile. If not, you need to create it yourself:
cd ~touch .vimrc
First, do some simple configuration:
Set nocompatible "Disable compatibility with vi Mode set number" display row number set nowrap "not auto-folding set showmatch" show matching brackets set scroloff =
the panel and adjust attributes and behaviors in the "attributes" form.
The icon of the element is a little dull, especially when it turns gray, but it is not very important to be beautiful. The source code editor provides code merging and syntax label highlighting, but there is no automatic Code Completion prompt. BlackAdder has a very good debugger, which is similar to other free tools except for the lack of monitoring functions.
Unfortunately, I e
Sublime Text is a useful editor I found, it is not only support Python, support the current multi-mainstream programming language, shortcut key rich, can greatly improve the efficiency of code development.Sublime Text Address: http://www.sublimetext.com/Version selection: The difference between python,sublime text 3 for Sublime Text 2 is that it updates the
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.