Skip to content

Instantly share code, notes, and snippets.

@obligingxx
obligingxx / 3.py
Created January 8, 2015 17:59
python
""" turtle-example-suite:
tdemo_round_dance.py
(Needs version 1.1 of the turtle module that
comes with Python 3.1)
Dancing turtles have a compound shape
consisting of a series of triangles of
decreasing size.
@obligingxx
obligingxx / 3.py
Created January 8, 2015 18:02
python
""" turtle-example-suite:
tdemo_round_dance.py
(Needs version 1.1 of the turtle module that
comes with Python 3.1)
Dancing turtles have a compound shape
consisting of a series of triangles of
decreasing size.
#!/usr/bin/env python3
""" turtle-example-suite:
tdemo_peace.py
A simple drawing suitable as a beginner's
programming example. Aside from the
peacecolors assignment and the for loop,
it only uses turtle commands.
"""
@obligingxx
obligingxx / 4.py
Created January 9, 2015 03:27
python
#!/usr/bin/env python3
""" turtle-example-suite:
tdemo_yinyang.py
Another drawing suitable as a beginner's
programming example.
The small circles are drawn by the circle
command.
<html>
<head>
<script type="text/javascript">
var 動物名 ;
var 訊息;
var 最終辨識;
var 中間辨識訊息;
var 辨識或停止;
var 最終辨識訊息變數 = '';
@obligingxx
obligingxx / 3.py
Created January 8, 2015 18:02
python
""" turtle-example-suite:
tdemo_round_dance.py
(Needs version 1.1 of the turtle module that
comes with Python 3.1)
Dancing turtles have a compound shape
consisting of a series of triangles of
decreasing size.
@obligingxx
obligingxx / 2.py
Created January 8, 2015 17:56
python
#!/usr/bin/env python3
""" turtle-example-suite:
tdemo_peace.py
A simple drawing suitable as a beginner's
programming example. Aside from the
peacecolors assignment and the for loop,
it only uses turtle commands.
"""
@obligingxx
obligingxx / 3.py
Created January 8, 2015 18:02
python
""" turtle-example-suite:
tdemo_round_dance.py
(Needs version 1.1 of the turtle module that
comes with Python 3.1)
Dancing turtles have a compound shape
consisting of a series of triangles of
decreasing size.