2015年1月17日土曜日

開発環境

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 コメント:

コメントを投稿