码迷,mamicode.com
首页 >  
搜索关键字:guess    ( 609个结果
猜年龄---for循环
#!/usr/bin/env python# -*- coding:utf-8 -*-# Author:Andy Chenage_of_oldboy = 56for i in range(3): guess_age = int(raw_input("guess age:")) if guess_ag ...
分类:其他好文   时间:2017-07-17 00:32:18    阅读次数:240
Python自动化3.0-------学习之路-------for和while循环!
一、if语句 if a>b: elif else: ********************************* age =55 guess_age=int(input("Age:")) if guess_age==age: print("yes!") elif guess_age >age: ...
分类:编程语言   时间:2017-07-15 20:29:26    阅读次数:254
angularjs事例
<!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Guess The Number !</title> <link href="bootstra ...
分类:Web程序   时间:2017-07-14 14:45:16    阅读次数:253
python if else while
1 getpass模块 设置密码不显示明文 用户名和密码输入程序: 判断登录 猜年龄: 猜3次 猜对了就退出,错误次数达到3次也退出 while while 条件 循环语句 如果提交为真就一直执行 while else" 如果while 的条件为真 就一直执行while 里面的代码 如果while的 ...
分类:编程语言   时间:2017-07-11 21:28:18    阅读次数:170
About Dynamic Programming
Main Point: Dynamic Programming = Divide + Remember + Guess 1. Divide the key is to find the subproblem 2. Remember use a data structure to write down ...
分类:其他好文   时间:2017-07-11 17:46:52    阅读次数:163
Python 猜年龄的游戏
猜年龄的游戏: 游戏规则: 1 age=18 2 count=True 3 while count: 4 5 for i in range(3): 6 guess_age=int(input('你猜我的年龄是多大:')) 7 if guess_age < age: 8 print('猜小了,往大里猜 ...
分类:编程语言   时间:2017-07-06 13:16:08    阅读次数:256
Python基础
第1章 变量 1.1 计算 1.1.1 基础运算 >>> 1+2 3 >>> 1+2 3 1.1.2 变量运算 >>> eat = 10+15+6 >>> cloth = 20+20 >>> total = eat+cloth >>> print('总消费',total) ('总消费', 71) > ...
分类:编程语言   时间:2017-07-06 12:22:06    阅读次数:215
for循环
For I in range(10) Print(“loop”,i) For 循环 列子1 Age_of_oldboy =56 For I in range(3): Guess_age = int(input(“guess_age:”)) If guess_age ==age_of_oldboy : ...
分类:其他好文   时间:2017-07-04 23:22:41    阅读次数:216
if,else判断
Age of oldboy =56 Guess_age =int(input(“guess age:”)) If guess_age ==age_of_oldboy : Print(“yes,you,got it,”) Elif guess_age > age_of_oldboy: Print(“t ...
分类:其他好文   时间:2017-07-04 23:17:49    阅读次数:262
UVa 11995 - I Can Guess the Data Structure!
题目:给你一些数据结构上的操作,推断该数据结构是栈、队列、还是优先队列。 分析:0基础DS,模拟。构建三种结构,直接模拟,然后依据结果推断。 说明:优先队列用最大堆实现。 #include <algorithm> #include <iostream> #include <cstdlib> #inc ...
分类:其他好文   时间:2017-06-23 12:51:07    阅读次数:153
609条   上一页 1 ... 33 34 35 36 37 ... 61 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!