我的第一个随笔
心型代码(java)
public class xin extends Thread {
public static void main(String[] args) throws Exception {
xin xin = new xin();
float x,y,a;
for(y=1.5f;y>-1.5f;y-=0.1f) {
for(x=-1.5f;x<1.5f;x+=0.05f) {
a = x*x+y*y-1;
System.out.print(a*a*a-x*x*y*y*y<0.0f?'x':' ');
}
xin.sleep(100);
System.out.println();
}
}
}