这个循环如何运作?

时间:2019-01-21 10:36:38

标签: shell

我有这段代码,我需要对其进行解释,尤其是其中的一部分 设置文件=“ $ files test $ k.ppm”

它做什么?

public class MemberReview
{
    public User Reviewer { get; set; }
    public int ReviewerId { get; set; }

    public User Reviewee { get; set; }
    public int RevieweeId { get; set; }
}

1 个答案:

答案 0 :(得分:0)

https://explainshell.com/

  

set用于设置变量

此行将变量“ files”设置为String,其值为“ {files} test {counter} .ppm” files ="$files test$k.ppm"

  

文件开头是空字符串...

#1st iteration (IN: files = "", k = 100)
files = "" + test100.ppm
#out files = test100.ppm

#2nd iteration (files = "" + test100.ppm; k = 110)
files = test100.ppm test110.ppm
#out files = test100.ppm test110.ppm

#Last iteration will be something like 
test100ppm test110ppm {...} test200.ppm

没什么