CSDN-EDU / CSDNEDU

1 stars 1 forks source link

CSDN技术栈 || “我好钟意你” 你的专属情书 #4

Open CSDN-EDU opened 5 years ago

CSDN-EDU commented 5 years ago

七夕,你是如何表白的呢?

征集你的专属情书

作品要求:

可以以任意程序语言为作品主体

形式不限(例如三行情书;网页;爱心代码)

Show me your code,show me your love

活动奖品:

一等奖1名: 程序员“必杀”机械键盘

二等奖2名: CSDN定制T恤一件

三等奖3名: CSDN月卡会员

啊 不好意思~ 结果在群内公示了,没有在这里公示~

运营小姐姐有点玩不懂github,所以忘记了呜呜呜 请大家原谅我!

评选结果:

1:Jesse1eung

2-3:nuoyanli/chichichia 4-6:Sml-del、suych、weishouxian

有中奖的小伙伴 联系 csdn108 楠楠小姐姐呀!

weishouxian commented 5 years ago

public static void main(String[] args){ for(float y = (float) 1.5;y>-1.5;y -=0.1) {
for(float x= (float) -1.5;x<1.5;x+= 0.05){
float a = xx+yy-1;
if((aaa-xxyyy)<=0.0) {
System.out.print("^");
}
else
System.out.print(" ");
}
System.out.println();
}
}

myk082610 commented 5 years ago

char MySweetheart = You; /只要我人生的程序不终止,你的名字一直都是我的心事。/ for( int i = Mylife.AnEncounterWithYou; HeartBeat->next != Stop; ) /自从那天与你邂逅,我愿往后生命的每一天里都有你的烙印,至死方休。/ (YourLover() != Me) ? SilentGuard(You) : DeepLove(You); /若你不爱,默默守护,不打扰是我的温柔;若你倾心,爱你是我一生的荣光/ /致:暗恋多年的你*/

chichichia commented 5 years ago

def LoveYouMore(): #爱你多一点
if yourLove<= myLove and not die : yourLove = myLove #当我们都没死去,即使你不那么爱我,我会赋予你我所有的爱 else: myLove+=myLove #我的爱一直在递增

okman001 commented 5 years ago

class love{ private final boolean I_LOVE_YOU = true; public static void main(String args[]){ if(I_LOVE_YOU) for(int i = 0; I_LOVE_YOU; i++) System.out.println("我将爱你 " + i + " 年."); } }

Amourzxq commented 5 years ago

我徘徊在时光的路口, 喜怒无常, 欢笑似乎变成一种奢望。 子夜里思念在作弊, 俊俏的脸庞早已迎梦而来。

tao-jin commented 5 years ago

for(var i=365*10000;i>0;i--){ console.info("爱你一万年")! }

lurenjia12138 commented 5 years ago

至于我下辈子爱不爱你,上辈子我就做出了选择

tyblogger commented 5 years ago

try{living();} //生活中总是出现这样那样的意外 catch(Exception e){faceTogether();} //只要我们携手共同面对 finally{ours.love++;} //最终只会让我们爱的更深

weishouxian commented 5 years ago

whil(myLiving()){ //当我还活着 myLove2your++;//我对你的爱就在增加 }

Jesse1eung commented 5 years ago

!/bin/bash

echo "if compare the system to Sansheng stone" read -p "you and me " name touch "$name"

q13121313647 commented 5 years ago

I am not happy, beca se ......

q13121313647 commented 5 years ago

I am not happy, beca se ......

q13121313647 commented 5 years ago

I am not happy, beca se ......

ZCSY commented 5 years ago

程序人生:ԅ(¯ㅂ¯ԅ) bug不息 code不断 爱意不绝 (⑉°з°)-♡

chongbinwei commented 5 years ago

秃驴又来跟贫道抢师太

uhhuh123 commented 5 years ago

while(life != end){ love++; bag++; lipstick++; money++; }

Zhouzhan-doris commented 5 years ago

`

5

from turtle import *

speed(5) pensize(10) pencolor('red') penup() bk(70) left(90) fd(100) right(90) pendown()

left(20) fd(150)

right(150) fd(200)

left(255) fd(200)

right(156) fd(121)

penup() seth(-45) fd(200) pendown()

write("牛郎七夕结织女",False,align="center", font=("Arial",20,"normal"))

penup() fd(100) pendown()

write("有情人终成眷属",False,align="center", font=("Arial",20,"normal")) hideturtle() done() `

Peakchen commented 5 years ago

go func(){ for { if _, ok := yourheartData["my heart"]; !ok { chaseyou(...) } } }

With my whole heart I seek you, I chased you like a madman, Use tens of millions of ways.

soulstones commented 5 years ago

try{ if(you.belive()) || ! you.belive()){ I .dolove( you) } }catch(Exception e){ throw new Exception("It is a miracle") }finally{ it.justhappend(); }

suych commented 5 years ago

public class HappyValentinesDay {

private static final Long ONE_HUNDRED_YEARS = 3_153_600_000L;

private static volatile boolean only = true;

public static void main(String[] args) {
    Thread me = new Thread(() -> {
        AtomicLong lifeTime = new AtomicLong(0);
        like();
        while (lifeTime.get() != ONE_HUNDRED_YEARS) {
            love();
            lifeTime.incrementAndGet();
        }
        bye();
    }, "Me");
    me.start();
}

private static void like() {
    System.out.println("I like u.");
}

private static void love() {
    if (only) {
        System.out.println("I love u.");
    }
    only = false;
}

private static void bye() {
    System.out.println("Bye.");
}

}

qiaohuyue commented 5 years ago

`using System; using System.Threading;

namespace ConsoleApp2 {

class Program
{
    static void Main(string[] args)
    {
        while (true)
        {
            Console.BackgroundColor = ConsoleColor.DarkBlue;
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("祝:天下所有有情人,七夕节快乐!");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("-----------------------------------------------");
            Console.BackgroundColor = ConsoleColor.DarkBlue;
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("请输入你的爱人姓名:");
            string loverName = Console.ReadLine();
            Console.WriteLine();
            Console.WriteLine("请输入你们相爱的日期:(yyyy年MM月dd日)");
            string loverTime = Console.ReadLine();
            Console.WriteLine();
            Console.WriteLine("请输入你们是否结婚(是或否):");
            string isMarry = Console.ReadLine();

            string result = string.Empty;

            if (isMarry.Trim() == "是")
            {
                string inputText = "“连你和您爱人相爱的日期都不记得了还过什么情人节”";
                bool isInputLoverTime = DateTime.TryParse(loverTime, out DateTime dateTime);
                if (isInputLoverTime && (DateTime.Now - dateTime).TotalMilliseconds > 0)
                {
                    DateTime ts = new DateTime((DateTime.Now - dateTime).Ticks);

                    inputText = $"至此你们已经结婚{ ts.ToString("yyyy年MM月dd日 HH时mm分ss秒.fff毫秒")},当你们过情人节的时候是否回想起你们的前任,😄!";
                    result = $"您和您的爱人{loverName}于{loverTime}相爱(💏),同时这个日期也做为你们电子结婚证的日期,{inputText}";
                    Console.WriteLine(result);
                    Console.WriteLine();
                    Console.WriteLine("你们比牛郎织女幸福多了,珍惜吧!");
                    Thread.Sleep(2000);
                    break;
                }
                else
                {
                    Console.WriteLine("走吧!");
                    Thread.Sleep(2000);
                }
            }
            else
            {
                Console.WriteLine();
                result = $"您和您的这位{loverName}是什么关系,八卦下是小蜜🐎?毛主席说过不以结婚为目的的男女关系都是耍流氓,难不成你想👈流氓兔吗?";
                Console.WriteLine(result);
                Console.WriteLine();
                Console.BackgroundColor = ConsoleColor.Red;
                Console.ForegroundColor = ConsoleColor.Black;
                Console.WriteLine("因为你耍流氓,所以你将进入无尽的深渊,永远也跳不出这个死循环,希望你可以找解救你的女神!");
                Console.WriteLine();
            }
        }
    }
}

} `

qiaohuyue commented 5 years ago

我觉得做UI的牛了。可以搞的特别炫,我们做后端的 前端薄弱一点,岂不是没有竞争力了。

qiaohuyue commented 5 years ago

`using System; using System.Threading;

namespace ConsoleApp2 {

class Program
{
    static void Main(string[] args)
    {
        while (true)
        {
            Console.BackgroundColor = ConsoleColor.DarkBlue;
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("祝:天下所有有情人,七夕节快乐!");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("-----------------------------------------------");
            Console.BackgroundColor = ConsoleColor.DarkBlue;
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("请输入你的爱人姓名:");
            string loverName = Console.ReadLine();
            Console.WriteLine();
            Console.WriteLine("请输入你们相爱的日期:(yyyy年MM月dd日)");
            string loverTime = Console.ReadLine();
            Console.WriteLine();
            Console.WriteLine("请输入你们是否结婚(是或否):");
            string isMarry = Console.ReadLine();

            string result = string.Empty;

            if (isMarry.Trim() == "是")
            {
                string inputText = "“连你和您爱人相爱的日期都不记得了还过什么情人节”";
                bool isInputLoverTime = DateTime.TryParse(loverTime, out DateTime dateTime);
                if (isInputLoverTime && (DateTime.Now - dateTime).TotalMilliseconds > 0)
                {
                    DateTime ts = new DateTime((DateTime.Now - dateTime).Ticks);

                    inputText = $"至此你们已经结婚{ ts.ToString("yyyy年MM月dd日 HH时mm分ss秒.fff毫秒")},当你们过情人节的时候是否回想起你们的前任,😄!";
                    result = $"您和您的爱人{loverName}于{loverTime}相爱(💏),同时这个日期也做为你们电子结婚证的日期,{inputText}";
                    Console.WriteLine(result);
                    Console.WriteLine();
                    Console.WriteLine("你们比牛郎织女幸福多了,珍惜吧!");
                    Thread.Sleep(2000);
                    break;
                }
                else
                {
                    Console.WriteLine(inputText);
                    Console.WriteLine("走吧!");
                    Thread.Sleep(2000);
                    break;
                }
            }
            else
            {
                Console.WriteLine();
                result = $"您和您的这位{loverName}是什么关系,八卦下是小蜜🐎?毛主席说过不以结婚为目的的男女关系都是耍流氓,难不成你想👈流氓兔吗?";
                Console.WriteLine(result);
                Console.WriteLine();
                Console.BackgroundColor = ConsoleColor.Red;
                Console.ForegroundColor = ConsoleColor.Black;
                Console.WriteLine("因为你耍流氓,所以你将进入无尽的深渊,永远也跳不出这个死循环,希望你可以找解救你的女神!");
                Console.WriteLine();
            }
        }
    }
}

} `

962585232 commented 5 years ago

(function(you){ alert(you?"Forget":"Miss"); })();

18282498202 commented 5 years ago

Set s = CreateObject("sapi.spvoice") s.Rate = -8 s.Volume = 100 s.speak "汪 汪 汪"

nuoyanli commented 5 years ago

一箭穿心

#coding=utf-8
from turtle import *
from time import sleep

def go_to(x, y):
    up()
    goto(x, y)
    down()

def big_Circle(size):
    speed(1)
    for i in range(150):
        forward(size)
        right(0.3)

def small_Circle(size):
    speed(1)
    for i in range(210):
        forward(size)
        right(0.786)

def line(size):
    speed(1)
    forward(51 * size)

def heart(x, y, size):
    go_to(x, y)
    left(150)
    begin_fill()
    line(size)
    big_Circle(size)
    small_Circle(size)
    left(120)
    small_Circle(size)
    big_Circle(size)
    line(size)
    end_fill()

def arrow():
    pensize(10)
    setheading(0)
    go_to(-400, 0)
    left(15)
    forward(150)
    go_to(339, 178)
    forward(150)

def arrowHead():
    pensize(1)
    speed(1)
    color('red', 'red')
    begin_fill()
    left(120)
    forward(20)
    right(150)
    forward(35)
    right(120)
    forward(35)
    right(150)
    forward(20)
    end_fill()

def main():
    pensize(2)
    color('red', 'pink')
    # getscreen().tracer(30, 0)
    heart(200, 0, 1)
    setheading(0)
    heart(-80, -100, 1.5)
    arrow()
    arrowHead()
    go_to(400, -300)
    write("作者:nuoyanli", move=True, align="left", font=("宋体", 30, "normal"))
    done()

main()
PanClear commented 5 years ago
let you = 'mylove';
let myHeart = "I love U";
function show(you,myHeart){
    for(let i = 0;i<3;i++)
        console.log("hey, "+you+" : "+myHeart);
}
let me = show ( you, myHeart )

代码式三行情书(by JavaScript)

PanClear commented 5 years ago
let you = 'mylove';
let myHeart = "I love U";
function show(you,myHeart){
    for(let i = 0;i<3;i++)
        console.log("hey, "+you+" : "+myHeart);
}
let me = show ( you, myHeart )
PanClear commented 5 years ago
let you = 'mylove';
let myHeart = "I love U";
function show(you,myHeart){
    for(let i = 0;i<3;i++)
        console.warn("hey, "+you+" : "+myHeart);
}
let me = show ( you, myHeart )
thirdparty-core commented 5 years ago

package love.you.ever; import image; import image; import image;

public class CSDN{ private static final String LOVE = "";

  public static void main(String[] args){
         System.out.println(LOVE);
  }

}

dreamisdream commented 5 years ago

enum Life {StayWithoutYou,StayWithYou}; void mian()//想写mian函数,就想我喜欢你一样,没有道理 { while (StayWithYou) { cout<<"Everytime is anaerobic "<<endl; } while(StayWithoutYou) { cout<<"Everytime is aerobic"<<endl; } }

dreamisdream commented 5 years ago

enum Life {StayWithoutYou,StayWithYou}; void mian()//想写mian函数,就想我喜欢你一样,没有道理 { while (StayWithYou) { cout<<"Everytime is anaerobic "<<endl; } while(StayWithoutYou) { cout<<"Everytime is aerobic"<<endl; } }

fox-xof commented 5 years ago

DATA: str1 type C. DATA: str2 type C. str1 = 'I LOVE YOU'. str2 = 'ME TOO'. WRITE / str1. ULINE. WRITE / str1. 七夕

RunningUncle commented 5 years ago

从女朋友开始,你将是我的未婚妻-->妻子-->孩子他妈-->孙儿的奶奶...,即使在百年之后我们也要躺在一起,反正以后你只能与我为伴!!!

fox-xof commented 5 years ago

coding=gbk

message_1 = "你猜我想吃什么\n" message_2 = "痴痴地望着你" print(message_1) print(message_2)

Sml-del commented 5 years ago

TNPMXI2)Z5T)F7)AO0 4J63

teema-alan commented 5 years ago

for row in range(6): for col in range(7): if (row==0 and col%3!=0) or (row==1 and col %3==0) or (row-col==2) or (row+col==8): print("*",end="") else: print(end=" ") print()

1526350709 commented 5 years ago

package csdn.qixi.huodong; //NODE.L public class Test {

public static void main(String[] args) { 
    test();
}

public static void test() { System.out.println("@程序员小姐姐"); char array1[]=new char[]{83,119,101,101,116,32,104,97,115,32,49,48,49,32,87,97,121,115 }; char array2[]=new char[]{69,97,116,32,115,117,103,97,114,32,44,99,97,107,101}; char array3[]=new char[]{78,105,110,101,116,121,45,110,105,110,101,32,116,105,109,101,115,32,73,32,109,105,115,115,32,121,111,117}; System.out.println(array1); System.out.println(array2); System.out.println(array3);

}

}

toLeftToRight commented 5 years ago

import java.awt.Color; import java.awt.Graphics; import java.awt.Image; import java.awt.Toolkit;

import javax.swing.JFrame;

public class love extends JFrame { //获取屏幕大小 private static final int WIDTH = 500; private static final int HEIGHT = 500;

    private static int WINDOW_WIDTH = Toolkit.getDefaultToolkit().getScreenSize().width;
    private static int WINDOW_HEIGHT = Toolkit.getDefaultToolkit().getScreenSize().height;

    public love(){
        super("I love you");//设置窗口标题
        this.setBackground(Color.BLACK);
        this.setLocation((WINDOW_WIDTH-WIDTH)/2,(WINDOW_HEIGHT-HEIGHT)/2);//设置窗口位置
        this.setSize(WIDTH, HEIGHT);//设置窗口大小
        this.setLayout(getLayout());//设置窗口布局
        this.setVisible(true);//设置窗口可见
        this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);//设置窗口默认关闭方式
    }

    public void paint(Graphics g){
        double x,y,r;//横纵坐标以及半径
        Image image = this.createImage(WIDTH, HEIGHT);
        Graphics pic = image.getGraphics();
        for (int i = -2; i < 90; i++) {
            for (int j = -2; j < 90; j++) {
                r=Math.PI/45+Math.PI/45*i*(1-Math.sin(Math.PI/45*j))*18;
                x=r*Math.cos(Math.PI/45*j)*Math.sin(Math.PI/45*i)+WIDTH/2;
                y=-r*Math.sin(Math.PI/45*j)+HEIGHT/3;
                pic.setColor(Color.MAGENTA);
                pic.fillOval((int)x, (int)y, 2, 2);
            }
            g.drawImage(image,0,0,this);//生成图片
        }
    }

public static void main(String[] args) throws Exception {
    new love();
}

}

toLeftToRight commented 5 years ago

System.out.println("@我好钟意你"); System.out.println("白茶清酒了无事,我在登风也等你"); System.out.println("三生有幸遇见你,纵使悲凉也是情");//不论结局,很高兴认识你 System.out.println("即许一人以偏爱,愿尽余生之慷慨");//一生只爱你一人 System.out.println("愿有岁月可回首,且以深情共白头");//我们结婚吧

anxingle commented 5 years ago

为好友做的求婚网站: http://garylovesuwye.github.io

kjf4096 commented 5 years ago

for(var i=365*10000;i>0;i--){ console.info("爱你一万年")! }

cuijinsheng6666 commented 5 years ago

结束了吗

thirdparty-core commented 5 years ago

谁中奖了?还是烂尾了?

anxingle commented 5 years ago

搞一个噱头吧,CSDN 不能总是这样啊!

anxingle commented 5 years ago

CSDN 真是越来越没有信用了

CSDN-EDU commented 5 years ago

谁中奖了?还是烂尾了?

啊啊啊 我更新了中奖名单!

CSDN-EDU commented 5 years ago

搞一个噱头吧,CSDN 不能总是这样啊!

嘤嘤嘤,我是在群内通知了 不好意思 我不太懂GitHub 不知道这个可以这样玩呜呜呜 现在已经更新了

CSDN-EDU commented 5 years ago

CSDN 真是越来越没有信用了

啊啊啊啊 不好意思啊 我是在群内通知了的~ 因为对GitHub 没有那么熟悉 真的真的很抱歉!哭泣了

ZCSY commented 5 years ago

中奖了????

------------------ 原始邮件 ------------------ 发件人: "CSDN-EDU"; 发送时间: 2019年8月20日(星期二) 晚上7:23 收件人: "CSDN-EDU/CSDNEDU"; 抄送: "IT:suoyue"1665741813@qq.com;"Comment"; 主题: Re: [CSDN-EDU/CSDNEDU] CSDN技术栈 || “我好钟意你” 你的专属情书 (#4)

谁中奖了?还是烂尾了?

啊啊啊 我更新了中奖名单!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.