我有这段代码,我需要对其进行解释,尤其是其中的一部分 设置文件=“ $ 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; }
}
答案 0 :(得分:0)
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
没什么