-1
client.DownloadFile("http://www.sat24.com/foreloop.aspx?type=1&continent=europa#", localFilename + "\\Sat24_Rain_Europe.html");
client.DownloadFile("http://www.sat24.com/foreloop.aspx?type=2&continent=europa#", localFilename + "\\Sat24_Wind_Europe.html");
client.DownloadFile("http://www.sat24.com/foreloop.aspx?type=3&continent=europa#", localFilename + "\\Sat24_Lightnings_europe.html");
client.DownloadFile("http://www.sat24.com/foreloop.aspx?type=0&continent=europa#", localFilename + "\\Sat24_Temperature_Europe.html");
client.DownloadFile("http://www.sat24.com/foreloop.aspx?type=4&continent=europa#", localFilename + "\\Sat24_Cloudtypes_Europe.html");
但每次代替下載到使一個循環,將通過諸如HTMLS運行:
for (int i = 0; i < 4; i++)
{
client.DownloadFile("http://www.sat24.com/foreloop.aspx?type=i&continent=europa#", localFilename + "\\Sat24_Cloudtypes_Europe.html");
}
相反0 1 2 3 4 ...使用(i)在循環。
但是,如果我改變client.DownloadFile( 「http://www.sat24.com/foreloop.aspx?type=4&continent=europa#」,localFilename + 「\ Sat24_Cloudtypes_Europe.html」);
數字4給我所以變量我會像藍色的一部分,而不是一個變量。