annotate pyikriam/example.py @ 62:a4c364888197

add ikriam game binding lib python version
author hychen@mluna
date Wed, 22 Oct 2008 04:04:32 +0800
parents
children 19d2a7b175b3
rev   line source
62
a4c364888197 add ikriam game binding lib python version
hychen@mluna
parents:
diff changeset
1 from __init__ import Ikariam
a4c364888197 add ikriam game binding lib python version
hychen@mluna
parents:
diff changeset
2
a4c364888197 add ikriam game binding lib python version
hychen@mluna
parents:
diff changeset
3 i = Ikariam(server='s1.ikariam.tw', username='hychen', password='')
a4c364888197 add ikriam game binding lib python version
hychen@mluna
parents:
diff changeset
4 city = i.city(117261)
a4c364888197 add ikriam game binding lib python version
hychen@mluna
parents:
diff changeset
5 city.sync()
a4c364888197 add ikriam game binding lib python version
hychen@mluna
parents:
diff changeset
6 print 'gold is'+city.gold