Preparations exercises 0

MacOS

  1. To  https://www.python.org/downloads/release/python-360/  download "Mac OS X 64-bit / 32-bit installer". The installation process and install other software the same.
  2. Open the browser  https://atom.io/  , locate and install Atom text editor. If you think Atom inappropriate, then see the final "Optional Text Editor" section of this exercise.
  3. The Atom (text editor) into the Dock so you can easily find it.
  4. Find the Terminal program in the system. Look around, you'll find it.
  5. The Terminal Dock also put inside.
  6. Run the Terminal program that is not anything.
  7. Run in Terminal in python3.6. Running is to type the name of the command and hitting the Enter key.
  8. After typing quit () press Enter to exit python3.6.
  9. So you should be back at a prompt before typing the python3.6. If not, find out why.
  10. Learn to create a directory on the Terminal.
  11. Learn to change to a directory on the Terminal.
  12. Use editor to create a file in the directory you enter. Create a new file using the "Save" (Save) or "Save As" (Save As ...) Options, then select the directory.
  13. Using the keyboard to switch back to the Terminal window.
  14. Back Terminal, list directories to see your new file with the ls command.

MacOS: The results should be seen

-------

windows

  1. Open the browser  https://atom.io/  , locate and install Atom text editor. This operation does not require administrator privileges.
  2. The Atom (text editor) on the desktop or Quick Launch bar, so you can easily access it. This can be seen in two installation options. If your computer is fast enough to run Atom, went to see the final "Optional Text Editor" section of this exercise.
  3. Run PowerShell from the Start menu. You can use the search function of the Start menu, and hit Enter to run after entering the name.
  4. Create a shortcut to it on the desktop or Quick Launch bar for ease of use.
  5. Run PowerShell program (I'll call it terminal), this program is not anything.
  6. To  https://www.python.org/downloads/release/python-360/  download and install Python 3.6. Remember to check the "Add Python 3.6 to PATH", Python 3.6 will add to the system directory. (To 3.6 version, for example, you can download a higher version)
  7. In run Python PowerShell terminal. Running is to type the command name and then hit enter. If not running, then you need to re-install Python, remember to check the "Add Python 3.6 to PATH" option during installation. The word is relatively small, we should look carefully.
  8. After typing quit () Press Enter to exit the python.
  9. So you should return to the prompt before you typed a python. If not, under their own research why.
  10. Learn to create a directory on PowerShell.
  11. Learn to change to a directory on PowerShell.
  12. Use editor to create a file in the directory you enter. Create a new file using the "Save" (Save) or "Save As" (Save As ...) Options, then select the directory.
  13. Using the keyboard to switch back to the PowerShell window.
  14. Back PowerShell, list directories to see your new file.

From now on, if I mentioned terminal (terminal) or shell, I mean that PowerShell. To run Python 3.6, just run python command.

Windows: The result should be seen

> python
>>> quit()
> mkdir lpthw
> cd lpthw
...使用文本编辑器来编辑 test.txt 文件...
>
> dir
Volume in drive C is
Volume Serial Number is  085C-7E02
·······
·······
·······

你看到的内容不一样也没关系,大体相似就可以了。

Linux

Linux系统五花八门,安装软件的方式也各有不同。

  1. 使用你的 Linux 包管理器安装 Python 3.6 。如果不能安装,就去 https://www.python.org/downloads/release/python-360/ 下载源代码并进行构建。
  2. 使用你的 Atom 包管理器安装 Atom 文本编辑器。如果你觉得 Atom 不合适,那就看看本习题最后的“可选文本编辑器”部分。
  3. 把 Atom(文本编辑器)放到窗口管理器显见的位置,以方便日后使用。
  4. 找到 Terminal 程序。它的名字可能是 GNOME Terminal 、Konsole 或者 xterm 。
  5. 把 Terminal 也放到 Dock 里面。
  6. 运行 Terminal 程序,这个程序没什么好看的。
  7. 在 Terminal 里运行 python 3.6 。运行的方法是键入命令的名字再敲一下回车键。如果没有 python 3.6 命令,那就试试只键入 python 。
  8. 键入 quit() 后按回车键,退出 python 3.6 。
  9. 这样你就应该退回到键入 python3.6 前的提示界面了。如果没有的话,自己研究一下为什么。
  10. 学着在 Terminal 上创建一个目录。
  11. 学着在 Terminal 上变到一个目录。
  12. 使用编辑器在你进入的目录下创建一个文件。新建一个文件,使用 “保存” (Save)或者 “另存为” (Save As...)选项,然后选择这个目录。
  13. 使用键盘切换回 Terminal 窗口。
  14. 回到 Terminal ,列出目录来看你新建的文件。

Linux:应该看到的结果

网上搜索

给新手的告诫

可选文本编辑器

 

Guess you like

Origin www.cnblogs.com/llr211/p/11288147.html
Recommended