2014年12月22日月曜日

開発環境

Introducing Python: Modern Computing in Simple Packages(Bill Lubanovic (著)、 O'Reilly Media)のChapter 4(Py Crust: Code Structures)、Things to Do 4.8.を解いてみる。

Things to Do 4.8.

コード(BBEdit)

sample8.py

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

def good():
    return ['Harry', 'Ron', 'Hermione']

print(good())

入出力結果(Terminal, IPython)

$ ./sample8.py
['Harry', 'Ron', 'Hermione']
$

0 コメント:

コメントを投稿