File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change 1- # with open("test.txt", "r") as myfile:
2- # text=myfile.read()
3-
4- # output_text = text.split(" ")
5-
6- # with open("Output.txt", "w",) as outfile:
7- # for line in output_text:
8- # outfile.write('"'+ line + '"')
9-
10- # s = "username:password"
11- # s2 ="wolfdo65gtornado:salmontiger223"
12- # result = "".join(itertools.takewhile(lambda x : x!=':' , s))
13- # result2 = "".join(itertools.takewhile(lambda y : y=="!", s2))
14-
15- # text ="username:password"
16- # left_text = text.partition(":")[0]
17-
18- # left_text = None
19-
20- # print(left_text)
21-
221import itertools
232import sys
243import os
5029
5130 format = '"' + username + '"' + semicolon + '"' + password + '"'
5231 outputFile .write (format + "\n " )
53- print (format )
5432
55- # f.write(format + "\n")
5633 line = f .readline ().splitlines ()
57-
58- # print(format, end='')
59- # f.write(format)
6034
6135 f .close ()
62- # while line != '': # The EOF char is an empty string
63- # # line.split(':')
64- # # print(line.split(':'), end='"')
65- # # line = reader.readline()
66-
67-
68- # # format = '"' + username + '"' + semicolon + '"' + password + '"'
69- # print(x)
70- # print(format, end="")
71- # line = f.readline()
72-
73- # function
You can’t perform that action at this time.
0 commit comments