社区
脚本语言
帖子详情
for in 的问题
hyd_cn
2016-03-20 10:09:31
如果 for x in [1,3,4]
print(x) 显示是 1、3、4
但如果 for x in[1,3,4]
while n>3
print(x)
这时候只显示 1 ,for in 不是会把 list里的数据都赋值一次吗?
...全文
135
2
打赏
收藏
for in 的问题
如果 for x in [1,3,4] print(x) 显示是 1、3、4 但如果 for x in[1,3,4] while n>3 print(x) 这时候只显示 1 ,for in 不是会把 list里的数据都赋值一次吗?
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
vanchristin
2016-03-21
打赏
举报
回复
n是哪里来的……这是两层循环,相当于print多了个判断条件
羽飞
2016-03-20
打赏
举报
回复
for x in[1,3,4] # 在这里加一个print(x)可以看到确实遍历了1,3,4 while n>3 print(x)
java反编译工具jad 1.5.8g(可以反编译jdk1.5,1.6)
java反编译工具jad 1.5.8g支持 jdk1.5,jdk1.6。说明很多记住一个万能的命令基本就够用了。jad -sjava -r -8 -o **\*.class ---------------This is README file for Jad - the fast Java Decompiler.Jad home page: http://www.kpdus.com/jad.htmlCopyright 2001 Pavel Kouznetsov (jad@kpdus.com).0. Please read the disclaimer on the Jad home page.1. Installation.Unzip jad.zip file into any appropriate directory on your hard drive.This will create two files: - an executable file named 'jad.exe' (Windows *) or 'jad' (*n*x) - this README fileNo other setup is required.2. How to use JadTo decompile a single JAVA class file 'example1.class' type the following: jad example1.classThis command creates file 'example1.jad' in the current directory.If such file already exists Jad asks whether you want to overwrite it or not.Option -o permits overwriting without a confirmation.You can omit .class extension and/or use wildcards in the names ofinput files.Option -s allows to change output file extension: jad -sjava example1.classThis command creates file 'example1.java'. Be careful when usingoptions -o and -sjava together, because Jad can accidentally overwriteyour own source files.Jad uses JAVA class name as an output file name. For example, if classfile 'example1.class' contains JAVA class 'test1' then Jad will createfile 'test1.jad' rather than 'example1.jad'. If you want to specifyyour own output file name use the output redirection: jad -p example1.class > myexm1.javaOption -d allows you to specify another directory for output files,which are created, by default, in the current directory. For example: jad -o -dtest -sjava *.class (or jad -o -d test -s java *.class, which has the same effect)This command decompiles all .class files in the current directory <
AnkhSvn-2.4.11610
http://ankhsvn.open.collab.net/ AnkhSVN 2.4 released!(Thursday, August 23, 2012) AnkhSVN is a Subversion Source Control Provider for Microsoft Visual Studio 2005, 2008, 2010 and 2012. AnkhSVN provides Apache™ Subversion® source code management support to all project types supported by Visual Studio and allows you to perform the most common version control operations directly from inside the Microsoft Visual Studio IDE. The Pending Changes dashboard gives you a unique insight in your development process and provides easy access to the source code and issue management features. The deep source code control (SCC) integration allows you to focus on developing, while AnkhSVN keeps track of all your changes and provides you the tools to effectively handle your specific needs.
js中for-in的坑
在js中一般使用的循环有两种 1.常规的for(var i=0;i
Python基础知识(for_in循环、for_in练习题_100到999之间的水仙花数、流程控制语句break、流程控制语句continue、else语句)
37.for_in循环 for-in循环 in表达从(字符串、序列等)中依次取值,又称为遍历 for-in遍历的对象必须是可迭代对象 for-in的语法结构 for 自定义的变量 in可迭代对象: 循环体 for-in的执行图 循环体内不需要访问自定义变量,可以将自定义变量替代为下划线 #可迭代(三种方式) for item in 'Python': #第一次取出来的是P,将P赋值值item,将item的值输出 print(item) #range() 产生一..
JavaScript For-In循环
JavaScript for-in循环应该用在非数组对象的遍历上,使用for-in进行循环也被称为“枚举”。本文章通过语法和实例向大家介绍在JavaScript中如何使用For-In循环来遍历对象。
脚本语言
37,743
社区成员
34,212
社区内容
发帖
与我相关
我的任务
脚本语言
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
复制链接
扫一扫
分享
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
试试用AI创作助手写篇文章吧
+ 用AI写文章