Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Rust过程宏实现Python-Fire - Fun4wut #4

Open
utterances-bot opened this issue Jan 2, 2020 · 1 comment
Open

Rust过程宏实现Python-Fire - Fun4wut #4

utterances-bot opened this issue Jan 2, 2020 · 1 comment

Comments

@utterances-bot
Copy link

Rust过程宏实现Python-Fire - Fun4wut

Python-Fire是一个简单易用的库,它能够将Python函数转变成 CLI 形式,将函数的参数作为命令行参数来读入,举个例子: 123456# main.pyimport firedef add(fst, snd): print(fst + snd)if name == 'main': fire.Fire(add) 命令行输入 python3 main.py 1

https://blog.fun4go.top/2019/12/13/rust%E8%BF%87%E7%A8%8B%E5%AE%8F/

Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants