Single_thread.py 236 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 from time import ctime,sleep def talk(): print("Start talk:%r"%ctime()) sleep(2) def write(): print("Start write:%r"%ctime()) sleep(3) if __name__ == '__main__': talk() write() print("All end!%r"%ctime())