Python
基本语法
Hello World
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
def print_hi(name: str, say: str = 'I am python'):
hello: str = 'Hello'
print(f'{hello}, {name}! \n{say}')
if __name__ == '__main__':
print_hi('World')
[root@loacl ~]python3 run.py
Hello, World!
I am python
...大约 3 分钟