Ich habe diese Grundlagen für (foreach) Schleife:
Code: Select all
x = 15
for x in range(10):
continue
print(x)
Code: Select all
#include
int main(void)
{
int x = 15;
for (int x = 0; x < 10; x++)
{
continue;
}
printf("%d", x);
return 0;
}
Post by Anonymous »
Code: Select all
x = 15
for x in range(10):
continue
print(x)
Code: Select all
#include
int main(void)
{
int x = 15;
for (int x = 0; x < 10; x++)
{
continue;
}
printf("%d", x);
return 0;
}
1743555992
Anonymous
Ich bin auf ein weiteres grundlegendes Konzept gestoßen, das ich in Python verpasst habe:
Ich habe diese Grundlagen für (foreach) Schleife:
[code]x = 15
for x in range(10):
continue
print(x)
[/code]
Der Wert für x war 15 betrug 15, aber stattdessen habe ich 9.[code]#include
int main(void)
{
int x = 15;
for (int x = 0; x < 10; x++)
{
continue;
}
printf("%d", x);
return 0;
}
[/code]
Ich kann nicht herausfinden, wie das variable Bereich hier funktioniert.>

Powered by phpBB® Forum Software © phpBB Limited
Time: 0.135s | Peak Memory Usage: 2.38 MiB | GZIP: On