五环

python使用turtle库绘制奥运五环

岁酱吖の 提交于 2020-02-23 00:58:10
效果图: #奥运五环 import turtle turtle.setup(1.0,1.0) #设置窗口大小 turtle.title("奥运五环") #蓝圆 turtle.penup() turtle.right(90) turtle.forward(-50) turtle.left(90) turtle.forward(-200) turtle.pendown() turtle.pensize(10) turtle.color("blue") turtle.circle(100) #黑圆 turtle.penup() turtle.forward(250) turtle.pendown() turtle.pensize(10) turtle.color("black") turtle.circle(100) #红圆 turtle.penup() turtle.forward(250) turtle.pendown() turtle.pensize(10) turtle.color("red") turtle.circle(100) #黄圆 turtle.penup() turtle.forward(-275) turtle.right(-90) turtle.pendown() turtle.pensize(10) turtle.color("yellow") turtle

奥运五环

偶尔善良 提交于 2020-02-20 05:44:24
<!DOCTYPE  html> <html>   <head>      <meta charset="UTF-8">      <title>奥运五环</title>      <style type="text/css">         div:first-child{           color:steelblue;         }         div:nth-child(2){           clolo:black;         }         div:nth-child(3){           clolo:red;         }         div:nth-child(4){           clolo:yellow;           transform: translateX:(240px) translateY(-250px);         }         div:nth-child(5){           clolo:green;           transform: translateX:(240px) translateY(-250px);         }      </style>   </head>   <body>      <div>        北      </div>    

Python绘制奥运五环

让人想犯罪 __ 提交于 2020-01-31 05:19:10
import turtle as t def pic ( color , x , y , r ) : t . width ( 10 ) t . color ( color ) t . penup ( ) t . goto ( x , y ) t . pendown ( ) t . circle ( r ) t . hideturtle ( ) if __name__ == "__main__" : pic ( "blue" , - 180 , 0 , 50 ) pic ( "black" , - 60 , 0 , 50 ) pic ( "red" , 60 , 0 , 50 ) pic ( "yellow" , - 120 , - 50 , 50 ) pic ( "green" , 0 , - 50 , 50 ) t . penup ( ) t . goto ( - 90 , - 80 ) t . pendown ( ) t . color ( "red" ) t . write ( "奥运五环" ) t . done ( ) 效果图: 来源: CSDN 作者: qq_43681106 链接: https://blog.csdn.net/qq_43681106/article/details/104117747

Python绘制奥运五环

╄→гoц情女王★ 提交于 2020-01-30 19:44:11
import turtle as t def pic(color,x,y,r): t.width(10) t.color(color) t.penup() t.goto(x,y) t.pendown() t.circle(r) t.hideturtle() if __name__ == "__main__": pic("blue",-180,0,50) pic("black",-60,0,50) pic("red",60,0,50) pic("yellow",-120,-50,50) pic("green",0,-50,50) t.penup() t.goto(-90,-80) t.pendown() t.color("red") t.write("奥运五环") t.done() 效果图: 来源: https://www.cnblogs.com/liaozhidan/p/12243501.html

HTML+CSS编写五环居中案例

匿名 (未验证) 提交于 2019-12-02 20:32:16
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="css.css"> <title>Document</title> </head> <body> <div class="plat"> <div class="circle1"></div> <div class="circle2"></div> <div class="circle3"></div> <div class="circle4"></div> <div class="circle5"></div> </div> </body> </html> css代码如下 * { margin: 0; padding: 0; } .plat { position: absolute; left: 50%; top: 50%; margin-left: -190px; margin-top: -93px; height: 186px; width: