How do I open a .PY file?

Danh Trịnh

New member
How do I open a .PY file?
Answer
Open the folder that includes your Python script in the Command Prompt by entering ‘Cd’ followed by the path of the file. Next, enter the full path of the CPython interpreter followed by the full location of the PY file in the Command Prompt, which must include the Python interpreter exe and PY file title.
Photo in the article by “Flickr”
Code:
https://www.flickr.com/photos/xmodulo/15453440890
Part 2 Creating a Quick Text File
  • Type cat > filename.txt into Terminal. You’ll replace “filename” with your preferred text file name (e.g., “sample”).
  • Press ↵ Enter .
  • Enter your document’s text.
  • Press Ctrl + Z .
  • Type ls -l filename.txt into Terminal.
  • Press ↵ Enter .
 

Tìm kiếm

Back
Top