wiki:Twistedの短いソースコード集

Version 1 (modified by nakiki, 13 years ago) (diff)

--

簡単な関数の実行

from twisted.internet import reactor

def printMsg():
  print 'test message'
  reactor.stop()

reactor.callLater(0, printMsg)
reactor.run()