"""
#使用 \r 实现百分比进度:
"""
import time
for i in range(101):
print("\r{:3}%".format(i),end='<----Hello-World---->'*5)
time.sleep(0.05)
# prime number 判断质数
for n in range(2,20):
for x in range(2,n):
if n%x == 0:
print(n,'equal to',x,'*',n//x)
break
else:
print(n,'is prime number')