()
| 2 | import Zcgi |
| 3 | |
| 4 | def main(): |
| 5 | try: |
| 6 | count = cPickle.load(file('count.txt')) |
| 7 | except: |
| 8 | count = 0 |
| 9 | count += 1 |
| 10 | cPickle.dump(count, file('count.txt', 'w')) |
| 11 | Zcgi.print_plain(str(count)) |
| 12 | |
| 13 | if __name__ == '__main__': |
| 14 | Zcgi.execute(main, 'cgi') |