In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "how to develop a relatively simple Python with vim". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Download python,gvim,python.vim first (python I installed 2.5 Gvim is an editor, python.vim is an extension of vim, with it edit python with vim, you can have syntax highlighting, if you want grammar automatic completion and then search on the Internet, recommend google), install pythoh first, and then install vim,gvim in Chinese (I don't know why, I'm on sf.net). Copy the python.vim to the pluins directory, open the _ vimrc file in its directory, add the mapvimrc to the bottom, then set the system environment variable in my computer properties, add the path where python.exe is located in the path variable, that is, the path where you install python, and then open gvim to enter the code. Just enter print 'Hello, wawa', and save it as mypy.py. Press esc to exit insert mode (otherwise press esc, press f5 to insert "f5" into the code), press F5, and your python program will run. Other vim operation instructions everyone google, there seems to be a Chinese manual.
The download path of the above three files google can be found, oh, I am afraid to provide the path, the path will change in the future, my current gvim is 7.1 Magi python is 2.5 Magi python.vim is in the sf.net vim project search Pythonjiao tutorials search.
Introduce a few more frequently asked questions at the entry level
The command line mode of python does not support screen cleaning. You need to type the following command
. > import os. > os.system ('cls')
Why does the following code run directly after entering only the first two lines in python commond?
. > import os. > os.system ('cls')
In fact, commond mode is only interactive mode, you can input the code in IDLE or vim and then execute why my comments and strings cannot be run if they contain Chinese. I want to convert the program I wrote into exe so that others can use it on his machine. Remember to package w9xpopen.exedypython25.dllrecoverylibrary.zip when distributing your program, otherwise you may not be able to execute it.
This is the end of the content of "how to develop a relatively simple Python with vim". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.