37,720
社区成员
发帖
与我相关
我的任务
分享
#coding=utf-8
import time
if __name__=='__main__':
# 屏幕的最大长度
maxLen = 60
for line in open("input.txt"):
# 去掉换行符
line = line.rstrip()
lineLen = len(line)
if lineLen<maxLen:
line = line + (maxLen-lineLen)*' '
print "%s\r"%(line),
time.sleep(0.2)
import sys
import time
list=[] ##list赋值为你想要的列表(数值型)
for i in list:
print("%-10d\r" %(i), end='')
time.sleep(1)
#coding=utf-8
import time
if __name__=='__main__':
# 屏幕的最大长度
maxLen = 60
delay = 1
for line in open("input.txt"):
# 去掉换行符
line = line.rstrip()
lineLen = len(line)
if lineLen<=maxLen:
line = line + (maxLen-lineLen)*' '
print "%s\r"%(line),
time.sleep(delay)
else:
# 对于超出宽屏宽度的行,进行分步输出
for i in range(0, lineLen, maxLen):
print "%s\r"%(line[i:i+maxLen]),
time.sleep(delay)
#coding=utf-8
import time
if __name__=='__main__':
# 屏幕的最大长度
maxLen = 60
delay = 1
for line in open("input.txt"):
# 去掉换行符
line = line.rstrip()
lineLen = len(line)
if lineLen<=maxLen:
line = line + (maxLen-lineLen)*' '
print "%s\r"%(line),
time.sleep(delay)
else:
# 对于超出宽屏宽度的行,进行分步输出
for i in range(0, lineLen, maxLen):
print "%s\r"%(line[i:i+maxLen])
time.sleep(delay)
Notifications API for adding push lightweight notifications to your applications. This keeps the attention of the user on the applications, and optimizes the application bandwidth and battery use
Qt Mobility API for building a variety of applications and services that are mobile capable or familiar to mobile users, irrespective of whether the platform is mobile or not
Symbian C++ for Qt APIs that are included in Qt SDK for your convenience. However, we recommend that you use the Mobility API functions whenever you can, and only use the Symbian C++ APIs to implement any missing functions (only available on Windows)
Utility applications, such as Nokia Energy Profiler and Nokia Performance Manager, example applications, and demos, that you can install on Symbian devices (only available on Windows)
import time
if __name__=='__main__':
for i in range(100):
print "%02d\r"%(i),
time.sleep(0.2)
import sys
import time
if __name__=='__main__':
for i in range(100):
time.sleep(0.2)
sys.stdout.write((u"已完成: %02d%% \r"%(i)).encode("gbk"))
a = [1, 2, 3]
while a:
v = a.pop(0)
print v