2014年9月14日日曜日

開発環境

Learning Python (Mark Lutz (著)、Oreilly & Associates Inc)のPART Ⅲ.(Statements and Syntax)、Chapter 10.(Introducing Python Statements)、Test Your Knowledge: Quiz 8.を解いてみる。

その他参考書籍

Test Your Knowledge: Quiz 8.

コード(BBEdit)

sample7.py

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

# without a colon
if True
    print('Hello, World!')

入出力結果(Terminal, IPython)

$ ./sample8.py
  File "./sample8.py", line 4
    if True
          ^
SyntaxError: invalid syntax
$

0 コメント:

コメントを投稿