input函数接收

    while True:
        paper_count = input("请输入要下载的5K超清壁纸的数量:")
        if paper_count.isnumeric() and int(paper_count) > 0:
            paper_count = int(paper_count)
            break
posted @ 2020-11-25 08:02  疯狂列表推导式  阅读(112)  评论(0编辑  收藏  举报