
Python
losacii
时间不会回头,每一秒不会重复。
展开
-
My mini project: display a text in my own PC
This project display a text on a pygame screen. # -*- coding:utf-8 -*- # 此程序读取D:\test目录下的一个文本, 然后每次播放一条句子, 循环播放. # ----> Importing and initializing Pygame # Import a library of functions called 'p原创 2015-08-31 22:28:23 · 483 阅读 · 0 评论 -
Python.备忘
优化输出显示效果 换行不会导致单词分两行显示,并增加类似打字输出的效果; import sys import time defpprint(txt,width=80): begin=0 end=0 whileTrue: if begin + width >= len(txt): for i原创 2017-04-23 13:20:12 · 547 阅读 · 0 评论