def Main()
import pyautogui, time
import uuid
import random
import string
import os
from timeit import default_timer as timer
start = timer()
clear = lambda: os.system('cls')
i = 0
a = ''
while i < 15:
a += random.choice(string.ascii_letters)
i += 1
print(email.lower())
...
Main()
我想定义Main
,然后在我的源代码结尾处返回main。
我已经尝试了如上所示的解决方案,但出现语法错误。
我对Python相当陌生。
答案 0 :(得分:0)
您有语法错误。请尝试以下代码。
import pyautogui, time
import uuid
import random
import string
import os
from timeit import default_timer as timer
email = 'some_email@some.com'
def Main():
start = timer()
clear = lambda: os.system('cls')
i = 0
a = ''
while i < 15:
a += random.choice(string.ascii_letters)
i += 1
print(email.lower())
Main()