iPhone8 Plus

20181503018 董锡睿

20181503049 王中泽

  1 import turtle
  2 import os
  3 from turtle import *
  4 pensize(5)
  5 speed(7)
  6 setup(1400,700,50,50)
  7 penup()
  8 goto(-400,300)
  9 pendown()
 10 right(90)
 11 for i in range(2):
 12     fd(600)
 13     circle(20,90)
 14     fd(300)
 15     circle(20,90)
 16 fd(15)
 17 left(90)
 18 penup()
 19 fd(90)
 20 right(90)
 21 pendown()
 22 begin_fill()
 23 circle(5)
 24 end_fill()
 25 penup()
 26 left(90)
 27 fd(49)
 28 right(90)
 29 pendown()
 30 begin_fill()
 31 circle(2,90)
 32 fd(56)
 33 circle(2,180)
 34 fd(56)
 35 circle(2,90)
 36 end_fill()
 37 left(90)
 38 penup()
 39 fd(29)
 40 left(90)
 41 fd(17)
 42 pendown()
 43 begin_fill()
 44 circle(5/2)
 45 end_fill()
 46 left(180)
 47 penup()
 48 fd(35)
 49 left(90)
 50 pendown()
 51 fd(160)
 52 right(90)
 53 fd(530)
 54 right(90)
 55 fd(315)
 56 right(90)
 57 fd(530)
 58 right(90)
 59 fd(160)
 60 right(90)
 61 penup()
 62 fd(580)
 63 left(90)
 64 pendown()
 65 circle(20)
 66 '''内部'''
 67 penup()
 68 left(90)
 69 fd(570)
 70 pensize(4)
 71 right(90)
 72 fd(127)
 73 pendown()
 74 begin_fill()
 75 fd(20)
 76 right(90)
 77 fd(10)
 78 right(90)
 79 fd(20)
 80 right(90)
 81 fd(10)
 82 end_fill()
 83 penup()
 84 right(180)
 85 fd(13)
 86 right(90)
 87 fd(143)
 88 pendown()
 89 pensize(8)
 90 write("13:14",font=('Arial',10,'normal'))
 91 left(180)
 92 penup()
 93 fd(107)
 94 pendown()
 95 write("100%",font=('Arial',10,'normal'))
 96 left(180)
 97 penup()
 98 fd(230)
 99 pendown()
100 pensize(1)
101 a=14
102 for i in range(4):
103     begin_fill()
104     fd(2)
105     right(90)
106     fd(a)
107     right(90)
108     fd(2)
109     right(90)
110     fd(a)
111     right(90)
112     fd(2)
113     end_fill()
114     penup()
115     fd(2)
116     a=a-2.8
117 left(180)
118 penup()
119 fd(20)
120 pendown()
121 write("中国联通",font=('Arial',10,'normal'))
122 pensize(3)
123 penup()
124 right(90)
125 fd(20)
126 pendown()
127 for i in range(4):
128     for i in range(4):
129         fd(30)
130         circle(8,90)
131     penup()
132     left(90)
133     fd(74)
134     right(90)
135     pendown()
136 penup()
137 fd(55)
138 right(90)
139 fd(74)
140 write("哔哩哔哩",font=('Arial',9,'normal'))
141 fd(63)
142 write("抖音",font=('Arial',9,'normal'))
143 fd(80)
144 write("PP体育",font=('Arial',9,'normal'))
145 fd(71)
146 write("学习通",font=('Arial',9,'normal'))
147 fd(8)
148 left(90)
149 fd(20)
150 pendown()
151 for i in range(4):
152     for i in range(4):
153         fd(30)
154         circle(8,90)
155     penup()
156     left(90)
157     fd(74)
158     right(90)
159     pendown()
160 penup()
161 fd(55)
162 right(90)
163 fd(74)
164 write("共享单车",font=('Arial',9,'normal'))
165 fd(63)
166 write("微信",font=('Arial',9,'normal'))
167 fd(80)
168 write("QQ音乐",font=('Arial',9,'normal'))
169 fd(71)
170 write("网易云",font=('Arial',9,'normal'))
171 fd(8)
172 left(90)
173 fd(20)
174 pendown()
175 for i in range(4):
176     for i in range(4):
177         fd(30)
178         circle(8,90)
179     penup()
180     left(90)
181     fd(74)
182     right(90)
183     pendown()
184 penup()
185 fd(55)
186 right(90)
187 fd(74)
188 write("腾讯视频",font=('Arial',9,'normal'))
189 fd(63)
190 write("优酷",font=('Arial',9,'normal'))
191 fd(80)
192 write("芒果TV",font=('Arial',9,'normal'))
193 fd(71)
194 write("保定通",font=('Arial',9,'normal'))
195 fd(8)
196 left(90)
197 fd(20)
198 pendown()
199 for i in range(4):
200     for i in range(4):
201         fd(30)
202         circle(8,90)
203     penup()
204     left(90)
205     fd(74)
206     right(90)
207     pendown()
208 penup()
209 fd(55)
210 right(90)
211 fd(74)
212 write("土豆视频",font=('Arial',9,'normal'))
213 fd(63)
214 write("微博",font=('Arial',9,'normal'))
215 fd(80)
216 write("百度地图",font=('Arial',9,'normal'))
217 fd(71)
218 write("爱奇艺",font=('Arial',9,'normal'))
219 fd(31)
220 left(90)
221 fd(127)
222 left(90)
223 pendown()
224 fd(315)
225 penup()
226 left(180)
227 fd(293)
228 left(90)
229 fd(22)
230 pendown()
231 for i in range(4):
232     for i in range(4):
233         fd(30)
234         circle(8,90)
235     penup()
236     left(90)
237     fd(74)
238     right(90)
239     pendown()
240 penup()
241 goto(-404,260)
242 pendown()
243 fd(20)
244 penup()
245 fd(20)
246 pendown()
247 fd(40)
248 penup()
249 fd(15)
250 pendown()
251 fd(40)
252 penup()
253 goto(-56,220)
254 pendown()
255 fd(40)
256 '''背面'''
257 penup()
258 goto(100,300)
259 pendown()
260 pensize(5)
261 for i in range(2):
262     fd(600)
263     circle(20,90)
264     fd(300)
265     circle(20,90)
266 penup()
267 left(90)
268 fd(15)
269 right(90)
270 fd(13)
271 pendown()
272 begin_fill()
273 circle(19,90)
274 fd(50)
275 circle(19,180)
276 fd(50)
277 circle(19,90)
278 end_fill()
279 penup()
280 left(90)
281 fd(105)
282 left(90)
283 pendown()
284 circle(2)
285 penup()
286 left(180)
287 fd(140)
288 left(90)
289 fd(15)
290 right(75)
291 pendown()
292 '''logo'''
293 begin_fill()
294 circle(80,25)
295 circle(10,100)
296 circle(-7,100)
297 circle(10,100)
298 circle(100,10)
299 left(90)
300 circle(-20,120)
301 left(70)
302 circle(20,105)
303 circle(-10,60)
304 circle(5,30)
305 circle(25,110)
306 end_fill()
307 penup()
308 goto(268,186)
309 left(75)
310 pendown()
311 begin_fill()
312 circle(20,90)
313 left(90)
314 circle(20,90)
315 end_fill()
316 '''iPhone'''
317 penup()
318 goto(240,-155)
319 pendown()
320 write("iPhone",font=('Arial',17,'normal'))
321 penup()
322 goto(96,220)
323 pendown()
324 fd(40)
325 penup()
326 goto(444,260)
327 pendown()
328 fd(20)
329 penup()
330 fd(20)
331 pendown()
332 fd(40)
333 penup()
334 fd(15)
335 pendown()
336 fd(40)
337 penup()
338 os.system('pause')

点击查看视频

 

posted @ 2019-05-16 11:37  18电信董锡睿  阅读(318)  评论(0编辑  收藏  举报