小怪兽@
发表于 2021-9-13 23:02:20
wulala
小怪兽@
发表于 2021-9-13 23:00:53
我想再试一遍
小怪兽@
发表于 2021-9-13 22:58:51
print("Hello World")
luckyee
发表于 2021-9-8 15:52:03
fishc.com
luckyee
发表于 2021-9-8 15:50:17
ahiahi
asdwa
发表于 2021-9-5 10:38:53
fishc.com
张sir.
发表于 2021-9-4 16:42:50
#include <stdio.h>
#include <math.h>
int main()
{
float price, area, yir, mir; // 单价、面积、年利率、月利率
float interest, loan; // 利息、贷款总额
float ave_repay, down_payment; // 月均还款、首期付款
float total_price, total_repay; // 房款总额、还款总额
int ratio, time; // 按揭成数、按揭年数
printf("请输入单价(元/平方):");
scanf("%f", &price);
printf("请输入面积:");
scanf("%f", &area);
printf("请输入按揭成数:");
scanf("%d", &ratio);
printf("请输入按揭年数:");
scanf("%d", &time);
printf("请输入当前基准利率:");
scanf("%f", &yir);
total_price=price*area;
down_payment=total_price*(1-0.1*ratio);
loan=total_price*ratio*0.1;
mir=yir/12/100;
time=time*12;
ave_repay=loan*((mir*pow(1+mir,time))/(pow(1+mir,time)-1));
interest=time*ave_repay-loan;
total_repay=loan+interest;
printf("========报告结果========\n");
printf("房款总额:%.2f\n", total_price);
printf("首期付款:%.2f\n", down_payment);
printf("贷款总额:%.2f\n", loan);
printf("还款总额:%.2f\n", total_repay);
printf("支付利息:%.2f\n", interest);
printf("月均还款:%.2f\n", ave_repay);
return 0;
}
张sir.
发表于 2021-9-4 16:42:00
[]#include <stdio.h>
#include <math.h>
int main()
{
float price, area, yir, mir; // 单价、面积、年利率、月利率
float interest, loan; // 利息、贷款总额
float ave_repay, down_payment; // 月均还款、首期付款
float total_price, total_repay; // 房款总额、还款总额
int ratio, time; // 按揭成数、按揭年数
printf("请输入单价(元/平方):");
scanf("%f", &price);
printf("请输入面积:");
scanf("%f", &area);
printf("请输入按揭成数:");
scanf("%d", &ratio);
printf("请输入按揭年数:");
scanf("%d", &time);
printf("请输入当前基准利率:");
scanf("%f", &yir);
total_price=price*area;
down_payment=total_price*(1-0.1*ratio);
loan=total_price*ratio*0.1;
mir=yir/12/100;
time=time*12;
ave_repay=loan*((mir*pow(1+mir,time))/(pow(1+mir,time)-1));
interest=time*ave_repay-loan;
total_repay=loan+interest;
printf("========报告结果========\n");
printf("房款总额:%.2f\n", total_price);
printf("首期付款:%.2f\n", down_payment);
printf("贷款总额:%.2f\n", loan);
printf("还款总额:%.2f\n", total_repay);
printf("支付利息:%.2f\n", interest);
printf("月均还款:%.2f\n", ave_repay);
return 0;
}
[]
张sir.
发表于 2021-9-4 16:40:24
[#include <stdio.h>
#include <math.h>
int main()
{
float price, area, yir, mir; // 单价、面积、年利率、月利率
float interest, loan; // 利息、贷款总额
float ave_repay, down_payment; // 月均还款、首期付款
float total_price, total_repay; // 房款总额、还款总额
int ratio, time; // 按揭成数、按揭年数
printf("请输入单价(元/平方):");
scanf("%f", &price);
printf("请输入面积:");
scanf("%f", &area);
printf("请输入按揭成数:");
scanf("%d", &ratio);
printf("请输入按揭年数:");
scanf("%d", &time);
printf("请输入当前基准利率:");
scanf("%f", &yir);
total_price=price*area;
down_payment=total_price*(1-0.1*ratio);
loan=total_price*ratio*0.1;
mir=yir/12/100;
time=time*12;
ave_repay=loan*((mir*pow(1+mir,time))/(pow(1+mir,time)-1));
interest=time*ave_repay-loan;
total_repay=loan+interest;
printf("========报告结果========\n");
printf("房款总额:%.2f\n", total_price);
printf("首期付款:%.2f\n", down_payment);
printf("贷款总额:%.2f\n", loan);
printf("还款总额:%.2f\n", total_repay);
printf("支付利息:%.2f\n", interest);
printf("月均还款:%.2f\n", ave_repay);
return 0;
}
]
mr.wyu
发表于 2021-9-4 09:10:38
import pygame
import sys
pygame.init()
size = (600, 600)
color = (230, 230, 230)
fullscreen = False
# 屏幕分辨率
screen = pygame.display.set_mode(size)
pygame.display.set_caption('打飞机')
image = pygame.image.load('images/ship.bmp')
rect = image.get_rect()
screen_rect = screen.get_rect()
print(screen_rect)
rect.midbottom = screen_rect.midbottom
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_q:
sys.exit()
if event.key == pygame.K_F11:
fullscreen = not fullscreen
if fullscreen:
screen = pygame.display.set_mode((1920, 1080), pygame.FULLSCREEN | pygame.HWSURFACE)
else:
screen = pygame.display.set_mode(size)
screen.fill(color)
screen.blit(image, rect)
pygame.display.flip()
screen_rect = screen.get_rect()
rect.midbottom = screen_rect.midbottom
晴雨皆宜
发表于 2021-9-2 16:30:54
懂了懂了·····
jiuwu91
发表于 2021-9-2 11:29:57
万万没想到啦啦啦
奶茶newfish
发表于 2021-8-30 12:05:43
sicuncunzhang 发表于 2021-8-30 08:51
我是想要插入的代码[\code]
反了是
sicuncunzhang
发表于 2021-8-30 08:53:06
我是想要插入的代码
sicuncunzhang
发表于 2021-8-30 08:51:53
我是想要插入的代码[\code]
B站在读研究生
发表于 2021-8-24 09:38:11
print 'I love 小甲鱼'
手里尖刀刺
发表于 2021-8-20 17:47:03
手里尖刀刺 发表于 2021-8-20 17:46
懂了懂了
手里尖刀刺
发表于 2021-8-20 17:46:27
print(‘i love fishc.com’)
956643259
发表于 2021-8-20 12:19:47
1213懂了懂了
yangtao120
发表于 2021-8-10 11:28:05
原来如此