第一个Python程序:Hello,world!
smoke@smoke-GS70-2PC-Stealth:~$ python3.8
Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print("Hello,world! ")
Hello,world!
>>> exit()
smoke@smoke-GS70-2PC-Stealth:~$ cd /home/smoke/文档/DocumentFile/file
smoke@smoke-GS70-2PC-Stealth:~/文档/DocumentFile/file$ mkdir python_script
smoke@smoke-GS70-2PC-Stealth:~/文档/DocumentFile/file$ cd python_script/
smoke@smoke-GS70-2PC-Stealth:~/文档/DocumentFile/file/python_script$ vim hello.py
print ("Hello World!")
smoke@smoke-GS70-2PC-Stealth:~/文档/DocumentFile/file/python_script$ python3.8 hello.py
Hello World!
浙公网安备 33010602011771号