Answer the question
In order to leave comments, you need to log in
Python, tell us a little about speed?
I'm testing something here, explain why the speed varies so much (errors on average + -0.1 sec)
1. Average replenishment time 3.3 - 3.5
string = "123"
result = 0
for i in range(10000000):
result = int(string)
string = "123"
result = 0
def main():
for i in range(10000000):
result = int(string)
main()
string = "123"
result = 0
def main():
for i in range(10000000):
result = int(string)
if __name__ == '__main__':
main()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question