In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to run python files in vscode. I hope you will get something after reading this article. Let's discuss it together.
1. First of all, you need to make sure that the Python plug-in for VScode is installed. Open the Python script, and you can drag it directly, click File, and click user Settings in the preferences. At this time, the user will set the configuration file.
2. Then search for the Python keyword in the left file Ctrl+F to find the line where pythonPath is located
3. Then copy the file of Python to the file on the right, pay attention to the direction of the slash, delete the end comma, and then press Crtl+S to save.
4. Then switch back to our program file, and Ctrl+shift+B runs the program. At this time, you will be prompted to configure the task runner, and click configure.
5. Choose to run any external command menu
6. In the open tasks.json file, you need to modify two contents, the path and the execution file name.
7. After the final configuration, the code of Python can be run directly by Ctrl+shift+B.
After reading this article, I believe you have a certain understanding of "how vscode runs python files". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
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.