- 博客(2)
- 收藏
- 关注
原创 利用星号和空格输出一个爱心形状
#include <stdio.h> int main(void) { float a,x,y; 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; char ch = a*a*a-x*x*y*y*y<=0.0f?'*':' '; putc
2021-05-06 19:47:42
2550
1
原创 python_控制输出数字个数
import math r=int(input()); # s=r*r*math.pi s=pow(r,2)*math.pi print(format(s,".2f")) print(format(s,".3f")) print("%.4f"%s) print("%.3f"%s)
2021-04-08 20:18:01
1862
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人