Python-100-Days/Day01-15/code/Day01/hello.py

23 lines
543 B
Python
Raw Normal View History

2018-03-02 00:09:06 +08:00
"""
第一个Python程序 - hello, world!
向伟大的Dennis M. Ritchie先生致敬
Version: 0.1
Author: 骆昊
Date: 2018-02-26
2019-06-12 01:23:30 +08:00
请将该文件命名为hello.py
使用Windows的小伙伴可以在命令行提示下通过下面的命令运行该程序
2018-03-02 00:09:06 +08:00
python hello.py
2019-06-12 01:23:30 +08:00
对于使用Linux或macOS的小伙伴可以打开终端并键入下面的命令来运行程序
python3 hello.py
2018-03-02 00:09:06 +08:00
"""
print('hello, world!')
# print("你好,世界!")
print('你好', '世界')
print('hello', 'world', sep=', ', end='!')
print('goodbye, world', end='!\n')