
Python
Ninglans
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python int输入,输入字符不报错
在你们使用python是,是不是因为在使用时输入了字符而报错呢?现在我就给大家来解决这个问题。 a=int(input()) print(a) 如果用上面这个程序输入字符,程序会报错,如下图: Traceback (most recent call last): File "main.py", line 1, in <module> a=int(input()) Valu...原创 2019-10-23 15:45:37 · 2364 阅读 · 0 评论 -
python 3.0实现逐字输出
from time import* def print_one_by_one(line,flag=1): for i in range(len(line)): print("\r"+line[0:i+1],end="") sleep(0.1) print_one_by_one("Hello World") 以上代码可实现Python3.0 逐字输出 ...原创 2019-10-19 09:50:27 · 1979 阅读 · 1 评论