CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
jackfrued

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: jackfrued/Python-100-Days
Path: blob/master/Day01-15/code/Day01/hello.py
Views: 729
1
"""
2
第一个Python程序 - hello, world!
3
向伟大的Dennis M. Ritchie先生致敬
4
5
Version: 0.1
6
Author: 骆昊
7
Date: 2018-02-26
8
9
请将该文件命名为hello.py
10
11
使用Windows的小伙伴可以在命令行提示下通过下面的命令运行该程序
12
python hello.py
13
14
对于使用Linux或macOS的小伙伴可以打开终端并键入下面的命令来运行程序
15
python3 hello.py
16
"""
17
18
print('hello, world!')
19
# print("你好,世界!")
20
print('你好', '世界')
21
print('hello', 'world', sep=', ', end='!')
22
print('goodbye, world', end='!\n')
23
24