跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 做了一个从命令行调用 Python 函数的小玩具
未分類
31 5 月 2020

做了一个从命令行调用 Python 函数的小玩具

做了一个从命令行调用 Python 函数的小玩具

資深大佬 : huntzhan 1

更多用法见: https://github.com/huntzhan/fireball

Basic usage:

$ fireball os:getcwd /Users/huntzhan/Data/Project/personal/fireball  $ fireball os.path:join 'foo' 'bar' foo/bar  $ fireball base64:b64encode 'b"foo"' b'Zm9v 

Help doc:

$ fireball base64:b64encode -- --help NAME     b64encode - Encode the bytes-like object s using Base64 and return a bytes object.  SYNOPSIS     b64encode S <flags>  DESCRIPTION     Optional altchars should be a byte string of length 2 which specifies an     alternative alphabet for the '+' and '/' characters.  This allows an     application to e.g. generate url or filesystem safe Base64 strings.  POSITIONAL ARGUMENTS     S  FLAGS     --altchars=ALTCHARS     --pdb_on_error=PDB_ON_ERROR  NOTES     You can also use flags syntax for POSITIONAL ARGUMENTS 

大佬有話說 (8)

  • 資深大佬 : loonghk

    python 就是这点好,总有新轮子

    我之前用 fire 库,现在可以换你这个玩玩了

  • 資深大佬 : xingheng

    怎么解决第三方依赖的问题

  • 主 資深大佬 : huntzhan

    @xingheng 具体是什么问题

  • 資深大佬 : leishi1313

    @loonghk 点进去一看,就是用 fire 做的

  • 主 資深大佬 : huntzhan

    @leishi1313 hhhhhh

  • 資深大佬 : xingheng

    @huntzhan 比如说我想用 requests 发一个指定 URL 参数请求,但是环境里面还没有安装 requests 依赖。

  • 資深大佬 : ruanimal

    @huntzhan 还记得 pybon 吗

  • 主 資深大佬 : huntzhan

    @xingheng 这种情况建议手动装 requests

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具