前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Python表白C#?文末有彩蛋!

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

作者头像
读懂原理
发布2022-12-18 16:32:24
2430
发布2022-12-18 16:32:24
举报
文章被收录于专栏:给点知识给点知识

版权所有,禁止转载

孤陋寡闻了

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,大哥留个情

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2022-12-04,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 给点知识 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档