User Tools

Site Tools


bok:sw:py:str

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

bok:sw:py:str [2020/12/29 13:09]
anwlur created
bok:sw:py:str [2020/12/29 13:10] (current)
anwlur corrected i => str(i)
Line 6: Line 6:
 int i = 0 int i = 0
 for i in range(100): for i in range(100):
-    print ("​Downloaded " + i + "​%",​ end='​\r'​)+    print ("​Downloaded " + str(i+ "​%",​ end='​\r'​)
     time.sleep(50/​1000) # sleep() function takes number of seconds     time.sleep(50/​1000) # sleep() function takes number of seconds
     ​     ​
bok/sw/py/str.1609247344.txt.gz ยท Last modified: 2020/12/29 13:09 by anwlur