tech blog
Hello Worsssld!
hello world!
tech blog- Async vs Threading vs Multiprocessing in Python
- Python Async
- Java Generics
- Python IoC/DI
- Optimistic Locking
- Premature Optimization Is The Root Of All Evil
- github page 域名解析
- Thoughts on The Distributed Computing Manifesto
- The top programming languages - 2022
- Shell Loops
- Interesting Blog
- Shell if-else test
- Shell Basic
- OS Three Pieces - Concurrency
- Python library - fire
- Setup Github Page
- 常用shell 命令
- shell 重定向与管道
- Welcome to Jekyll!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import fire
def hello(name):
return 'hello {}'.format(name)
def pathname(base, *path):
'''
usage:
python fire_test.py /home ../*
'''
print(base)
print(path)
def kwargs_test(base, **path):
'''
usage:
python fire_test.py hello --dog1 qq --dog2 gg
'''
print(base)
print(path)
if __name__ == '__main__':
fire.Fire(pathname)
# fire.Fire(kwargs_test)