摘要: team = input("请输入一个整数:")num = int(team)while num: i = num -1 while i: print(' ',end='') #注意括号里面的 '' 要加个空格哦 i = i- 1 j = num while j: print('*',end='') j = ... 阅读全文
posted @ 2017-07-18 22:36 ouwen_Python 阅读(148) 评论(0) 推荐(0) 编辑
摘要: import random #随机函数secret = random.randint(1,10) #secret 取1到10随机数print("猜数游戏" .center(50,"-"))times = 3guess = 0# print("不妨猜一下我现在心里想的是哪一个数字:",end="")# 阅读全文
posted @ 2017-07-18 16:58 ouwen_Python 阅读(442) 评论(0) 推荐(0) 编辑