開発環境
- OS X Yosemite - Apple (OS)
- Emacs (CUI)、BBEdit - Bare Bones Software, Inc. (GUI) (Text Editor)
- Python 3.4 (プログラミング言語)
Introducing Python: Modern Computing in Simple Packages(Bill Lubanovic (著)、 O'Reilly Media)のChapter 7(Mangle Data Like a Pro)、Things to Do 7.1.を解いてみる。
Things to Do 7.1.
コード(BBEdit)
sample1.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unicodedata
mystery = '\U0001f4a9'
print(mystery)
print(unicodedata.name(mystery))
入出力結果(Terminal, IPython)
$ ./sample1.py 💩 PILE OF POO $
0 コメント:
コメントを投稿