码迷,mamicode.com
首页 >  
搜索关键字:guess    ( 609个结果
while循环初探
1 count = 0 2 #while True: 3 while count >>')) 7 8 if guess_number == get_number: 9 print("Congratulations, you guessed it") 10 exit() 11 elif guess_n... ...
分类:其他好文   时间:2017-09-30 16:22:18    阅读次数:173
Laravel5.1 登录和注册
关于登录和注册 Laravel自带了一套组件实现了这一功能,我们只需要实现简单的视图即可。 AuthController是专门管理用户注册和登录的。 PassWordController是重置密码用的,今天暂不做记录。 1 配置 我们可以在 config/auth.php 文件中进行用户认证的配置: ...
分类:其他好文   时间:2017-09-29 01:39:03    阅读次数:232
我的第一个Python小程序
猜年龄,如果大了提示小点,如果小了,提示大点 涉及的知识点: 1、变量 2、注释 3、接收交互式的输入 4、类型转换 5、while循环 6、if..elif..else多条件分支语句 # Author: fansik # Description: Guess age age_of_fansik = ...
分类:编程语言   时间:2017-09-27 19:13:52    阅读次数:169
July 13th 2017 Week 28th Thursday
No dream is too big, and no dreamer is too small.梦想再大也不嫌大,追梦的人再小也不嫌小。Hold on to your dreams, but be careful that some of them may be too far away to b ...
分类:其他好文   时间:2017-09-26 01:03:07    阅读次数:143
第一个python小程序(数字游戏)
#Author:Echo# -*- coding:utf8 -*-Age = 21counter = 0for i in range(10): if counter < 3: print("counter1",counter) GuessNum=int(input("input your Guess ...
分类:编程语言   时间:2017-09-23 20:19:24    阅读次数:191
Android-crop:漂亮的图片裁切工具
主要特点 Gradle构建和AAR 现代化的UI 向后兼容到SDK 10 配置简单 示例项目 使用 首先,在你的 manifest 文件中申明 CropImageActivity : 裁切 监听裁切的结果(如果你想做一些错误处理,见示例项目): 裁切见面的属性是可以定制的,详情请查看实例项目的主题。 ...
分类:移动开发   时间:2017-09-22 22:37:06    阅读次数:270
[leetcode-299-Bulls and Cows]
You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time ...
分类:其他好文   时间:2017-09-22 12:07:53    阅读次数:197
[leetcode] 374. Guess Number Higher or Lower
We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron ...
分类:其他好文   时间:2017-09-10 23:42:58    阅读次数:235
python 第2天
importeasygui,randomsecret=random.randint(1,99)easygui.msgbox("""Ihaveasecret,Itisanumberfrom1-99,youhave6tries.OKlet‘doit.""")tries=0guess=0whiletries<6andguess!=secret:guess=easygui.integerbox("what‘syourguess,metey?")//只允许输整数,若是小数可以用gues..
分类:编程语言   时间:2017-09-10 16:36:23    阅读次数:208
用Python写一个小游戏
刚学Python时间不长,但也知道了一点,看别人的参考写了一个猜数字小游戏,也算是禹学于乐吧。#!/usr/bin/envpython#coding=utf-8importrandomsecret=random.randint(1,100)guess,tries=0,0printu"已经给出了一个1-99的数字"whileguess!=secretandtries<5:printu"请给出你猜..
分类:编程语言   时间:2017-09-09 23:16:34    阅读次数:289
609条   上一页 1 ... 29 30 31 32 33 ... 61 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!