python emoji+表情库
emotlib的Python项目详细描述
#emotlib:python emoji+emoticon库
[![pypi-python版本](https://img.shields.io/pypi/pyversions/emotlib.svg)(https://pypi.org/project/emotlib/)
[![pypi](https://img.shields.io/pypi/v/emotlib.svg)(https://pypi.org/project/emotlib/)
[![特拉维斯分行](https://img.shields.io/travis/steven5538/emotlib/master.svg)(https://travis ci.org/steven5538/emotlib)
[![工作服Github](https://img.shields.io/coveralls/github/steven5538/emotlib.svg)(https://coveralls.io/github/steven5538/emotlib)
[![阅读文档](https://img.shields.io/read the docs/emotlib.svg)](http://emotlib.readthedocs.io/en/latest/)
![pypi-license](https://img.shields.io/pypi/l/emotlib.svg)
安装
--------
安装emotlib,只需使用[pipenv](http://pipenv.org/)(或者pip,当然当然是):
````
$pipenv install emotlib
<127849;//
```
`````
例如
<注:在python2.x中,字符串必须是Unicode。Ex: u'I\'m :elf:'
``` python
>> import emotlib
>> print(emotlib.emoji())
?
>> print(emotlib.emoji(category='food-fruit'))
?
>> print(emotlib.emoji(num=3))
??????
>> print(emotlib.emoji(num=3, sep= ' ~ '))
? ~ ? ~ ? ~
>> 打印(emotlib.emojify('i'm:man-aru technologist:')
i'm
>;gt;打印(emotlib.emojify('i'm:man-technologist:',别名‘‘‘))
i'm打印(emotlib.demomojify('i'm
>;gt;打印(emotlib.demojify('i'm‘;))))
st:
>;>打印(emotlib.demojify('i'm',alias='~'))
I'm :man~technologist:
>> print(emotlib.emoticon())
( ´ ▽ ` )ノ
>> print(emotlib.emoticon(feel='confused'))
(´−`) ンー
>> print(emotlib.emoticon(num=3))
┌(★o☆)┘┌(★o☆)┘┌(★o☆)┘
>> print(emotlib.emoticon(num=3, sep='~')
(`_*)_ ~(`_*)~(`_*)~
>;>;打印(emotlib.emoticonify(“我是一个快乐的开发人员”))
我是一个快乐的开发人员。*(*’_*)☆
```
>检查类别和感觉
``python
>;导入emotlib
>;emotlib.emoji类别
>;emotlib.emoticon
``
[![pypi-python版本](https://img.shields.io/pypi/pyversions/emotlib.svg)(https://pypi.org/project/emotlib/)
[![pypi](https://img.shields.io/pypi/v/emotlib.svg)(https://pypi.org/project/emotlib/)
[![特拉维斯分行](https://img.shields.io/travis/steven5538/emotlib/master.svg)(https://travis ci.org/steven5538/emotlib)
[![工作服Github](https://img.shields.io/coveralls/github/steven5538/emotlib.svg)(https://coveralls.io/github/steven5538/emotlib)
[![阅读文档](https://img.shields.io/read the docs/emotlib.svg)](http://emotlib.readthedocs.io/en/latest/)
![pypi-license](https://img.shields.io/pypi/l/emotlib.svg)
安装
--------
安装emotlib,只需使用[pipenv](http://pipenv.org/)(或者pip,当然当然是):
````
$pipenv install emotlib
<127849;//
```
`````
例如
<注:在python2.x中,字符串必须是Unicode。Ex: u'I\'m :elf:'
``` python
>> import emotlib
>> print(emotlib.emoji())
?
>> print(emotlib.emoji(category='food-fruit'))
?
>> print(emotlib.emoji(num=3))
??????
>> print(emotlib.emoji(num=3, sep= ' ~ '))
? ~ ? ~ ? ~
>> 打印(emotlib.emojify('i'm:man-aru technologist:')
i'm
>;gt;打印(emotlib.emojify('i'm:man-technologist:',别名‘‘‘))
i'm打印(emotlib.demomojify('i'm
>;gt;打印(emotlib.demojify('i'm‘;))))
st:
>;>打印(emotlib.demojify('i'm',alias='~'))
I'm :man~technologist:
>> print(emotlib.emoticon())
( ´ ▽ ` )ノ
>> print(emotlib.emoticon(feel='confused'))
(´−`) ンー
>> print(emotlib.emoticon(num=3))
┌(★o☆)┘┌(★o☆)┘┌(★o☆)┘
>> print(emotlib.emoticon(num=3, sep='~')
(`_*)_ ~(`_*)~(`_*)~
>;>;打印(emotlib.emoticonify(“我是一个快乐的开发人员”))
我是一个快乐的开发人员。*(*’_*)☆
```
>检查类别和感觉
``python
>;导入emotlib
>;emotlib.emoji类别
>;emotlib.emoticon
``