dir.by  
Поиск >>

Компьютер, программы
→
Python
 Создаем новое приложение Python в текстовом редакторе и запускаем в командной строке 
посмотрели 4510 раз
обновлено: 7 February 2021
Создадим 2 файла
  Файл 1.py
print('Hello, world!')
На заметку! Мы создали файл 1.py это Python файл.
 
 
  Файл 1.sh
python 1.py
$SHELL
exit 1
На заметку! Мы создали файл 1.sh и в нем вызываем
$SHELL
exit 1

чтобы не закрывалась консоль после завершения программы
В командной строке запустим файл 1.sh
  Command Prompt (Win Console)  
1.sh
Увидим результат
 
← Previous topic
Download and install Python for Windows
 
Next topic →
Creating a new application with Python in Visual Studio Code. Debugging the application. See how Python is executed step by step in debugging
 
Your feedback ... Comments ...
   
Your Name
Your comment (www links can only be added by a logged-in user)

Новость "Черная пятница" на технику Dreame в Беларуси с 17 по 30 ноября 2026 года – две недели скидок до 3400 рублей
 
• Download and install Python for Windows
New app
Option 1. Create a new application in a text editor and run it on the command line
• Create a new Python application in a text editor and run it on the command line
Option 2 (the best for me). Creating a New App in Visual Studio Code
• Creating a new application with Python in Visual Studio Code. Debugging the application. See how Python is executed step by step in debugging
Python syntax, functions, classes
• How do you check in Python if an object has an attribute?
Examples
• Python example: "Open the XML file and read the sections and save it to the txt file"
• Python example: "Download tasks from Redmine"
• Python example: "HTTP server"
Sites to learn Python
• Sites to learn Python

  Ваши вопросы присылайте по почте: info@dir.by