- 博客(1)
- 收藏
- 关注
原创 《Python编程:从入门到实践》猜数字游戏
最近看到的一本经典书籍,由Eric Matthes所写。在前言部分中提到他编写的第一个程序。在网上查找一翻,竟没有找到功能与之一样的程序,于是决定根据书中提供的运行结果来复刻一下。 以下为程序内容: def guess(): print('I\'m think of a number!Try to guess the number') import random num=random.randint(0,100) print(num) gnum=int(inpu
2022-02-06 12:28:25
2276
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人