I have written many Python programs, but every time I run them, I have to flip to the folder where the program is located, open a command line window, and then enter Python * * *. py to run the program, which is really inconvenient
After checking the information online, you can add a shortcut to the desktop. Fill in the path to python.exe and the path to the py file in the target column. Double click the shortcut to run it, but it will also open a command line window. You can solve this problem by changing python.exe to pythonwe.exe. As shown in the figure below:
For the sake of aesthetics, you can also modify the icon of the shortcut. Click the change icon button in the above picture to select the desired icon. As shown in the figure below:

Related articles
- Ubuntu's XDMCP login to ubuntu desktop crashes
- Record: easycr Error: Could not initialize NNPACK reason Unsupported hardware causing Python program to exit abnormally
- Streamlit installation error resolution
- Matplotlib ImportError: DLL load failed: Unable to find specified module
- Python: can't open file '
': [Errno 22] Invalid argument - Python dictionary application
- Cv2. error: OpenCV (4.5.5) D: a opencv Python opencv Python opencv modules imgproc src imgwarp. cpp: 66
- Python drawing based on f (x) (2D)
- The interval for drawing a histogram in Python must be a saturation integral interval
- PLT.bar Drawing Rules - Taking Drawing Histograms as an Example
- Installed numpy but reported numpy.core.multiarray failed to import
- Regarding the issue of using sqlite to create database tables in PyCharm and not displaying the tables
- After successful installation of Python, the terminal still displays the lower version
- Usage of astype(), iloc, and loc
- Installation of Python's docx library
- Seaborne has installed the correct version, but module 'seaborne' has no attribute appears
- Iloc operates on DataFrame, converting DataFrame and Series to a list, with the maximum and second largest values, and removing punctuation at the end of the string
- AttributeError: module 'pandas' has no attribute' Series'
- Installing pip and PyMySQL in Centos Python 2.7.5 offline environment
- Develop SDK using Python and package Python projects
Latest articles
- Ubuntu decompresses the tar.gz format file
- Ubuntu's XDMCP login to ubuntu desktop crashes
- RunTime Error: cuda out of memory
- Ffmpeg converts a frame from yuv444 format to png format
- Notepad++Theme Change, Highlighting Selected Content
- Record: easycr Error: Could not initialize NNPACK reason Unsupported hardware causing Python program to exit abnormally
- Streamlit installation error resolution
- Resolving Warning for Ignoring Invalid Distribution
- Matplotlib ImportError: DLL load failed: Unable to find specified module
- Python: can't open file '
': [Errno 22] Invalid argument - Executable NotFound: failed to execute 'dot', make sure the Graphviz executors are on your systems'
- Python dictionary application
- Cv2. error: OpenCV (4.5.5) D: a opencv Python opencv Python opencv modules imgproc src imgwarp. cpp: 66
- Python drawing based on f (x) (2D)
- The interval for drawing a histogram in Python must be a saturation integral interval
- PLT.bar Drawing Rules - Taking Drawing Histograms as an Example
- Sort and remove duplicate numbers in C language
- Summary of pedestrian re identification paper
- Unable to boot up when memory is full (Ubuntu)
- Java Spark code error: java. lang. NoSuchMethodError: net. jpuntz. lz4. LZ4BlockInputStream
Hot tags:
java python linux javascript using error android vue.js solution mysql data vue file c++ windows installation configuration c ubuntu method implementation between spring function project spring-boot server system sql database issue c# springboot html docker oracle idea environment command version methods image process resolve uses network excel failed time display