In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Python has a lot of coding tools. Pycharm is currently the most popular. Please refer to the Pycharm installation tutorial for Pycharm installation and use.
And in the learning process, I think the best use, or Python comes with the practice tool IDLE. This tool does not need to be installed, it is available after Python is installed.
The biggest advantage of this tool is that variable values and function return values can be displayed directly without printing. This greatly facilitates the process of learning, you need to constantly check the execution results of various statements.
basic use
Open Tools, Windows Start Menu> All Programs> Python 3.6 > IDLE (Python 3.6 32-bit)
After opening, the interface is as follows:
During the exercise, if you need to create Python files, you can also use IDLE operations:
Open File > New File or press Ctrl + N
Enter Python code in the new window
Then you can run it by pressing F5 or clicking Run > Run Module in the menu bar.
After running, it will pop up a prompt asking for saving
Click OK and save to the directory where you saved your notes.
After running, you return to the Python IDLE shell interface, which shows the name of the file you are currently running. You can continue at the cursor position.
Modify IDLE theme
Of course, the theme I am using has been modified. The method of modifying the theme is as follows:
Open Menu Options > Config IDLE
modify font
Personally prefer DejaVu Sans Mono this font, automatic first time with ubuntu system like this similar font. You can choose the corresponding font according to your preference. The display style of various characters of the current font is displayed on the right.
Modify theme styles
You need to find the config-highlight.cfg file, use the windows key + R to open "Run" directly, and enter in the run window (copy and paste): notepad %USERPROFILE%\.idlerc\config-highlight.cfg
This command opens the config-highlight.cfg file in Notepad.
If there is no such file, use the following command:
%USERPROFILE%\.idlerc\
This command will enter a folder, create a new text file under the folder, change the name to config-highlight.cfg, and right-click Notepad to open it.
Then copy and paste the following paragraph
[Obsidian]definition-foreground = #678CB1error-foreground = #FF0000string-background = #293134keyword-foreground = #93C763normal-foreground = #E0E2E4comment-background = #293134hit-foreground = #E0E2E4builtin-background = #293134stdout-foreground = #678CB1cursor-foreground = #E0E2E4break-background = #293134comment-foreground = #66747Bhilite-background = #2F393Chilite-foreground = #E0E2E4definition-background = #293134stderr-background = #293134hit-background = #000000console-foreground = #E0E2E4normal-background = #293134builtin-foreground = #dd17e8stdout-background = #293134console-background = #293134stderr-foreground = #FB0000keyword-background = #293134string-foreground = #EC7600break-foreground = #E0E2E4error-background = #293134[tango]definition-foreground = #fce94ferror-foreground = #fa8072string-background = #2e3436keyword-foreground = #8cc4ffnormal-foreground = #ffffffcomment-background = #2e3436hit-foreground = #ffffffbreak-foreground = #000000builtin-background = #2e3436stdout-foreground = #eeeeeccursor-foreground = #fce94fhit-background = #2e3436comment-foreground = #73d216hilite-background = #edd400definition-background = #2e3436stderr-background = #2e3436break-background = #2e3436console-foreground = #87ceebnormal-background = #2e3436builtin-foreground = #ad7fa8stdout-background = #2e3436console-background = #2e3436stderr-foreground = #ff3e40keyword-background = #2e3436string-foreground = #e9b96ehilite-foreground = #2e3436error-background = #2e3436
As shown below:
Copy it in, save it and close it.
Close IDLE and re-open it. Enter the settings interface just now. Click Highlights and select Obsidian or tango.
Then happy coding bar, good-looking fonts and color matching will also increase their interest in learning a lot!
Other coding tools include Sublime text, Eclipse, etc. See other online tutorials.
The next data type.
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.