def file_stats(max_lenght):
Fl = 7 ** max_lenght
Fb = (max_lenght + 2) * Fl
if Fb >= 1000 and Fb < 1000000:
Fbfinal = Fb / 1000
stdout.write("[+] Lines : %s\n[+] File size : %i Kb\n\n"%(Fl, Fbfinal))
elif Fb >= 1000000 and Fb < 1000000000:
Fbfinal = Fb / 1000000
stdout.write("[+] Lines : %s\n[+] File size : %i Mb\n\n"%(Fl, Fbfinal))
elif Fb >= 1000000000:
setlocale(LC_NUMERIC, '')
Fbfinal = Fb / 1000000000
formato = format("%.*f", (0, Fbfinal), True)
stdout.write("[+] Lines : %s\n[+] File size : "+formato+" Gb\n\n"%(Fl))
else:
stdout.write("[+] Lines : %s\n[+] File size : %i bytes\n\n"%(Fl))
cmd = raw_input("[?] Do you want continue [Y/N] : ")
if cmd == "N" or cmd == "n":
exit()
评论列表
文章目录