python学生管理系统gui_代写python 图形界面作业、 python GUI 开发代写

代写python 图形界面作业、 python GUI 开发代写

日期:2018-05-04 09:09

1 Define the drawsquare function and draw the image shown below. Assume each side is 40 pixels. (Hint: notice that the turtle has already moved away from the ending point of the last square when the program ends.)

2 Write a function drawPoly(somesides, somesize) which makes a turtle draw a regular polygon. When called with drawPoly(8, 50), it will draw a shape like this:

3 The two spirals in this picture differ only by the turn angle. Draw both.

4 Write a function sumTo(n) that returns the sum of all integer numbers up to and including n. So sumTo(10) would be 1+2+3...+10 which would return the value 55. Use the equation (n * (n + 1)) / 2.

5 Write a function to draw a five pointed star, where the length of each side is 100 units. Use the function you defined to draw five stars, but between each, pick up the pen, move forward by 350 units, turn right by 144, put the pen down, and draw the next star. You’ll get something like this (note that you will need to move to the left before drawing your first star in order to fit everything in the window):

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值