파이썬 질문이요
글쓴이: qw3709 / 작성시간: 수, 2018/01/24 - 12:17오후
import os
password=0;
file=open("secret.txt","r")
for i in file:
print"\n"+i
for j in range(97,122):
if i == j:
password +=chr(j)
print "find pw: " + password
if j == 126:
print "password is %s" %(pw)
print (password)
file.close()secret파일안에있는 문자열을 찾는 코드인데
찾긴찾는데 출력후 다시 실행시키면 아무것도안뜨네요..
다시띄우려면 어떻게해야하죠??
ex)
>>import seceret
>>secret 1
>>import secert
>> <- 아무것도안뜸
Forums:


댓글 달기