首页 / 请用你的专业向妈妈表白
#

请用你的专业向妈妈表白

#
14911次浏览 108人互动
母亲节到啦,跟妈妈说母亲节快乐了吗?不善言辞那就用专业表达~鼓励用编程语言(Python/Java)、数学公式(如心形函数)等硬核方式向妈妈表达情感,看看妈妈是什么反应!
此刻你想和大家分享什么
热门 最新
一颗很不错的心
想不到豆包还有代码运行的预览图 还是动态的 感觉自己out了哈哈哈哈哈哈哈哈哈哈好像大一的时候才用代码画过爱心 最近完成了毕设的系统 想回家演示一下 让妈妈看看我有多牛哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" width="400" height="400">  <style>    @keyframes heartbeat {      0% { transform: scale(1); }      15% { transform: scale(1.2); }      30% { transform: scale(1); }      45% { transform: scale(1.2); }      100% { transform: scale(1); }    }    @keyframes float {      0% { transform: translateY(0px); }      50% { transform: translateY(-20px); }      100% { transform: translateY(0px); }    }    .heart {      animation: heartbeat 1.5s infinite;      transform-origin: center;      fill: #ff5e87;      filter: drop-shadow(0 0 15px rgba(255, 94, 135, 0.7));    }    .sparkle {      animation: float 3s infinite ease-in-out;      fill: white;      opacity: 0;    }    .sparkle:nth-child(odd) {      animation-delay: 0.5s;    }  </style>  <g transform="translate(200, 180)">    <path class="heart" d="M0,-60 C-70,-110 -150,-50 -150,30 C-150,100 -70,150 0,200 C70,150 150,100 150,30 C150,-50 70,-110 0,-60 Z" />    <circle class="sparkle" cx="-80" cy="-30" r="5">      <animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite" />    </circle>    <circle class="sparkle" cx="80" cy="-40" r="6">      <animate attributeName="opacity" values="0;1;0" dur="2.5s" repeatCount="indefinite" />    </circle>    <circle class="sparkle" cx="-60" cy="-80" r="4">      <animate attributeName="opacity" values="0;1;0" dur="3s" repeatCount="indefinite" />    </circle>    <circle class="sparkle" cx="60" cy="-90" r="5">      <animate attributeName="opacity" values="0;1;0" dur="2.2s" repeatCount="indefinite" />    </circle>    <circle class="sparkle" cx="-30" cy="-110" r="4">      <animate attributeName="opacity" values="0;1;0" dur="2.7s" repeatCount="indefinite" />    </circle>    <circle class="sparkle" cx="30" cy="-100" r="5">      <animate attributeName="opacity" values="0;1;0" dur="2.3s" repeatCount="indefinite" />    </circle>  </g></svg>
点赞 评论 收藏
分享
码农也有爱,只是不会表达我们也是有感情的,只是不会表达!使用C#语言在控制台打印爱心public void Main(){    // 设置心形绘图参数    double x, y;    int width = 60;   // 控制台宽度    int height = 30;  // 控制台高度    // 遍历每个像素位置    for (int row = 0; row < height; row++)    {        string line = "";        for (int col = 0; col < width; col++)        {            // 将像素坐标转换为数学坐标(带比例调整)            y = 1.5 - (row * 3.0 / height);  // y ∈ [-1.5, 1.5]            x = (col * 3.0 / width) - 1.5;   // x ∈ [-1.5, 1.5]            // 心形线方程:(x² + y² - 1)³ - x²y³ ≤ 0            double equation = Math.Pow(x * x + y * y - 1, 3)                                - x * x * Math.Pow(y, 3);            line += equation <= 0 ? "*" : " ";        }        Console.WriteLine(line);    }}
点赞 评论 收藏
分享
头像 会员标识
05-15 19:51
门头沟学院 Java
点赞 评论 收藏
分享
玩命加载中
牛客网
牛客企业服务