python知识点(3)——AI猜数字,经典小题目

# 三、猜数字的AI # # 和猜数字一样,不过这次是设计一个能猜数字的AI # # 功能描述:用户输入一个单位以内的数字,AI要用最少的次数猜中,并且显示出猜的次数和数字。 # -*- coding: utf-8 -*- """ :author: lihui :website: withlihui.com Let computer guess a number """ while True:
相关文章
相关标签/搜索