python:for while
来源:互联网 发布:php.ini在哪 编辑:程序博客网 时间:2024/06/06 20:00
# -*-coding:utf-8-*-'''Created on 2017年4月29日@author: Administrator'''# if food = raw_input('you name is ')if food == 'jack': age = 'kt' print ageelif food == 'hack': age = 'kts' print age else: print 'jack'# this is for """for i in range(10,0-1,-1): print i """ for i in range(0,11,2):# 开始数 结束数 每次递增的步长 print i#whilei=0while i<10: print(i) i=i+1#while is jiechengn=20fact =1i=2while i<n: fact=fact*i i=i+1print "number:"+str(fact)
0 0
- python-if,for,while
- python:for while
- python:循环(while、for)
- Python<7>while、for循环
- PYTHON-if while,for语句
- python中的if、while、for
- 【python】python控制流---if、for、while
- python循环for,range,xrange;while
- Python笔记(四) if,while,for
- python控制流语句-while,for,if
- python的while和for循环
- python 基本语法 遍历 for while
- Python——while和for循环
- python下if/for/while用法
- python list tuple if for while
- python while循环和for循环
- Python中的while循环和for循环
- Python循环语句for和while
- Archlinux 安装qemu 及 error while loading shared libraries: libssl.so.1.1问题
- Proc笔记
- Kali Linux下口令字典破解WAP2加密小实验
- 数据压缩实验三:Huffman编码
- html 外边距合并的解决办法
- python:for while
- Friends (HDU
- Git学习
- 三种近距离技术ZigBee、蓝牙(Bluetooth)和WiFi介绍
- C语言学习历程——Training02位运算01
- NYOJ999 师傅又被妖怪抓走了(预处理+状态压缩+广搜BFS)
- 内存地址笔记
- BZOJ 1036 [ZJOI2008]树的统计Count 树链剖分
- 目标文件,静态库,动态库详解