Loading...  ### JAVA实现: ```java package Love; /** * @Author BenDangMi * @Date 2021/11/23 17:17 * @Version 1.0 */ public class LOVE { public static void main(String[] args) { girlFriend girlFriend = new girlFriend(); try { girlFriend.loveYourShape(); } catch (InterruptedException e) { e.printStackTrace(); } } } class girlFriend{ double x; double y; double c; public void loveYourShape() throws InterruptedException { for (y = 1.5; y > -1.5; y -= 0.1) { for (x = -1.5; x < 1.5; x += 0.05) { c = x * x + y * y - 1; System.out.print( (c * c * c - x * x * y * y * y <= 0.0) ? "\33[31;1m*" : " "); Thread.sleep(1); } System.out.println(); } System.out.format("\33[31;1m\n" + "あなたもダンスを思い出しますか%n"); } } ``` ### C/C++实现: ```cpp #include<iostream> #include<windows.h> using namespace std; int main() { double x, y, cc; system("color 0c"); for (y = 1.5; y > -1.5; y -= 0.1) { for (x = -1.5; x < 1.5; x += 0.05) { cc = x * x + y * y - 1; putchar( (cc * cc * cc - x * x * y * y * y <= 0.0) ? '*' : ' '); } putchar('\n'); } } ``` ### matlab实现: ```matlab t = 0:pi/50:2*pi; x = 16*sin(t).^3; y= 13*cos(t)-5*cos(2*t)-2*cos(3*t)-cos(4*t); scatter(x,y,'rd','filled'); title('送给最美的你!'); ```  最后修改:2021 年 12 月 15 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 如果文章有用,请随意打赏。
4 条评论
dns改8.8.8.8才能访问我的博客,但是你不至于把我友链撤了吧
抱歉!我以为是死链呢!博主麻烦再发一下在我的友链文章下面发一下你的网站信息,我把友链加上!
name: XR-SEC
link: https://blog.zygd.site
avatar: https://rmt.ladydaily.com/fetch/ZYGG/storage/20201208143114085332.png
descr: 低调求发展,潜心习安全
已添加!欢迎回访哦!