跳转到主要内容

Unicode雪人摩尔斯电码

项目描述

https://badge.fury.io/py/snorse.png https://travis-ci.org/pipermerriam/snorse.png?branch=master https://pypip.in/d/snorse/badge.png

Unicode雪人摩尔斯电码

  • 免费软件:MIT许可证

安装

$ pip install snorse

使用

命令行

$ snorse snowman
     ⛄⛄⛄    ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄    ⛄⛄⛄ ⛄⛄⛄   ⛄⛄⛄ ⛄⛄⛄    ⛄⛄⛄   ⛄⛄⛄ 
$ cat snowman | snorse
     ⛄⛄⛄    ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄    ⛄⛄⛄ ⛄⛄⛄   ⛄⛄⛄ ⛄⛄⛄    ⛄⛄⛄   ⛄⛄⛄ 
$ echo snowman > snowman.txt
$ snorse snowman.txt
     ⛄⛄⛄    ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄    ⛄⛄⛄ ⛄⛄⛄   ⛄⛄⛄ ⛄⛄⛄    ⛄⛄⛄   ⛄⛄⛄ 
$ snorse -f snowman.txt
     ⛄⛄⛄    ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄    ⛄⛄⛄ ⛄⛄⛄   ⛄⛄⛄ ⛄⛄⛄    ⛄⛄⛄   ⛄⛄⛄ 

Python API

>>> import snorse
>>> snorse.snorse('snowman')
u'\u2603 \u2603 \u2603   \u26c4\u26c4\u26c4 \u2603   \u26c4\u26c4\u26c4 \u26c4\u26c4\u26c4 \u26c4\u26c4\u26c4   \u2603 \u26c4\u26c4\u26c4 \u26c4\u26c4\u26c4   \u26c4\u26c4\u26c4 \u26c4\u26c4\u26c4   \u2603 \u26c4\u26c4\u26c4   \u26c4\u26c4\u26c4 \u2603'
>>> print snors.snorse('snowman')
     ⛄⛄⛄    ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄    ⛄⛄⛄ ⛄⛄⛄   ⛄⛄⛄ ⛄⛄⛄    ⛄⛄⛄   ⛄⛄⛄ 

盈利!

历史

0.1.0 (2014-01-11)

  • PyPI上的首次发布。

项目详情


下载文件

下载适合您平台的应用程序文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

snorse-1.0.0.tar.gz (4.5 kB 查看哈希值)

上传时间:

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面