[我是想要插入的代码]
我是代码
学习学习{:10_254:}
wulala
我想再试一遍
print("Hello World")
fishc.com
ahiahi
fishc.com
#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;
}
[]#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;
}
[]
[#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;
}
]
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
懂了懂了·····
万万没想到啦啦啦
sicuncunzhang 发表于 2021-8-30 08:51
我是想要插入的代码[\code]
反了是
我是想要插入的代码
我是想要插入的代码[\code]
print 'I love 小甲鱼'