We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fa8fec commit db5a076Copy full SHA for db5a076
27.py
@@ -0,0 +1,33 @@
1
+import download_file
2
+import read_bin_file
3
+
4
+from PIL import Image
5
6
7
+def main():
8
+ url = "http://www.pythonchallenge.com/pc/hex/zigzag.jpg"
9
+ file_path = "zigzag/zigzag.jpg"
10
+ user = "butter"
11
+ password = "fly"
12
+ # first_step(url, file_path, user, password)
13
+ # second_step(file_path)
14
+ third_step(file_path)
15
16
17
+def first_step(url, file_path, user, password):
18
+ download_file.download_with_auth(url, file_path, user, password)
19
20
21
+def second_step(file_path):
22
+ ary = read_bin_file.read_bin_file(file_path)
23
+ print(ary)
24
25
26
+def third_step(file_path):
27
+ im = Image.open(file_path)
28
+ print(im)
29
+ width, height = im.size
30
31
32
+if __name__ == "__main__":
33
+ main()
zigzag/zigzag.jpg
68.6 KB
0 commit comments