zl程序教程

您现在的位置是:首页 >  Python

当前栏目

Python表白C#?文末有彩蛋!

2023-02-18 16:32:39 时间

版权所有,禁止转载

孤陋寡闻了

Python:

我不是一定要比你厉害,只是当又比你意赅,你写了好几行,我只用一行。

C#:

? ? ?

小知识

01

Python实现爱心最佳答案

import turtle

import math

import time

turtle.pen()

t=turtle

t.up()

t.goto(0,150)

t.down()

t.color('#ea402c')

t.begin_fill()

t.fillcolor('#ea402c')

t.speed(1)

t.left(45)

t.forward(150)

t.right(45)

t.forward(100)

t.right(45)

t.forward(100)

t.right(45)

t.forward(100)

t.right(45)

t.forward(250+math.sqrt(2)*100)

t.right (90)

t.speed(2)

t.forward(250+100*math.sqrt(2))

t.right(45)

t.forward(100)

t.right(45)

t.forward(100)

t.right(45)

t.forward(100)

t.right(45)

t.forward(150)

t.end_fill()

t.goto(-10,0)

t.pencolor('white')

#L

def getL(t):

t.pensize(10)

t.goto(-50,0)

t.goto(-50,80)

t.up ()

#I

def getI(t):

t.goto(-100,0)

t.down()

t.goto(-160,0)

t.goto(-130,0)

t.goto(-130,80)

t.goto(-160,80)

t.goto(-100,80)

t.up()

#O

def getO(t):

t.goto(10,25)

t.down()

t.right(45)

t.circle(25,extent=180)

t.goto(60,55)

t.circle(25,extent=180)

t.goto(10,25)

t.up()

t.goto(75,80)

t.down()

t.goto(100,0)

t.goto(125,80)

t.up()

t.goto(180,80)

t.down()

t.goto(140,80)

t.goto(140,0)

t.goto(180,0)

t.up()

t.goto(180,40)

t.down()

t.goto(140,40)

#C#

def getC(t):

t.up()

t.goto(-60,-80)

t.down()

t.write("C#", font=('宋体',60,'normal'))

t.hideturtle()

getL(t)

getO(t)

getI(t)

getC(t)

time.sleep(9)

C # ?? ?

Python:

你就把我忘了吧

我是你生命的过客

世界上人来人往那么多

你何必在乎我

C#:

滚!!

JAVA:

???

C:

咳咳

SQL:

drop database xxx;

Linux: rm -rf /*

JAVA、C、Python、C#、SQL:

Linux,大哥留个情