@@ -25,7 +25,7 @@ from datetime import date
25
25
26
26
#### 14
27
27
result: http://www.pythonchallenge.com/pc/return/uzi.html
28
- ```
28
+ ``` python
29
29
from PIL import Image
30
30
from PIL import ImageDraw
31
31
```
44
44
45
45
#### 13
46
46
result: http://www.pythonchallenge.com/pc/return/italy.html
47
- ```
47
+ ``` python
48
48
import xmlrpc.client
49
49
```
50
50
It's amazing that RPC tech has so much long history.
@@ -55,7 +55,7 @@ This method returns a list of the methods the server has, by name.
55
55
56
56
57
57
POST below with application/xml to server.
58
- ```
58
+ ``` xml
59
59
<?xml version =" 1.0" ?>
60
60
<methodCall >
61
61
<methodName >phone</methodName >
@@ -76,7 +76,7 @@ use python IO to divide the gfx into 5(5 is the count of playing card in the pic
76
76
77
77
#### 11
78
78
result: http://www.pythonchallenge.com/pc/return/evil.html
79
- ```
79
+ ``` python
80
80
from PIL import Image
81
81
from PIL import ImageDraw
82
82
```
@@ -107,20 +107,20 @@ result: http://www.pythonchallenge.com/pc/return/good.html
107
107
un: huge pw: file
108
108
109
109
html knowledge: img-usemap="#--", map, area, sharp, poly, coords.
110
- ```
110
+ ``` python
111
111
import bz2
112
112
```
113
113
114
114
#### 7
115
115
result: http://www.pythonchallenge.com/pc/def/integrity.html
116
- ```
116
+ ``` python
117
117
from PIL import Image
118
118
```
119
119
use PIL module to find the block's pixel with getpixel(), then use chr() to translate the code
120
120
121
121
#### 6
122
122
result: http://www.pythonchallenge.com/pc/def/oxygen.html
123
- ```
123
+ ``` python
124
124
import zipfile
125
125
```
126
126
zip file not only can bi unzip, can contains a lot of comments.
@@ -130,15 +130,15 @@ every level will play with a new lib.
130
130
131
131
#### 5
132
132
result: http://www.pythonchallenge.com/pc/def/channel.html
133
- ```
133
+ ``` python
134
134
import pickle
135
135
```
136
136
every line elements add up to 96
137
137
138
138
#### 4
139
139
result: http://www.pythonchallenge.com/pc/def/peak.html
140
140
141
- ```
141
+ ``` python
142
142
import requests
143
143
```
144
144
this is a http client lib with to do http request.
0 commit comments