Wenn ich eine C-Datei wie unten habe, was ist der Unterschied zwischen iund j? #include <stdio.h> #include <stdlib.h> static int i; int j; int main () { //Some implementation }
Was ist der Grund dafür, dass globals () in Python funktioniert? Es wird nur ein Wörterbuch globaler Variablen zurückgegeben, die bereits global sind, sodass sie überall verwendet werden können. Ich frage nur aus Neugier und versuche, Python zu lernen. def F(): global x x = 1 def G(): print(globals()["x"]) #will …
We use cookies and other tracking technologies to improve your browsing experience on our website,
to show you personalized content and targeted ads, to analyze our website traffic,
and to understand where our visitors are coming from.
By continuing, you consent to our use of cookies and other tracking technologies and
affirm you're at least 16 years old or have consent from a parent or guardian.