自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 python做1到100的自然数累加

python做1到100的自然数累加,并将结果保存至同目录下的txt文件s = 0i = 0for i in range(100): i = i + 1 s = s + iprint(s)with open('output.txt','w',encoding='utf-8') as fin: # 这里的encoding = 'utf-8'可以不用加 fin.write('1+2+3+4+5+6+...+99+100=') fin.write(str(s))pri

2022-03-23 19:51:48 4248

原创 根据父母身高预测女儿身高C语言代码

根据父母身高预测女儿身高C语言代码#include<stdio.h>#define DEG 0.923#define CEG 2float height(float father,float mother);int main()//定义主函数//{ //定义mother father的数据类型// float father; float mother; float daughter; printf(" \tCaculate daughter's height \n"

2022-02-10 20:42:13 829

原创 根据父母身高预测儿子身高C语言代码

根据父母身高预测儿子身高C语言代码#include <stdio.h> //预处理命令//#define HEG 0.54//定义常量0.54//float height(float father,float mother);int main(){ float father; float mother; float son; printf("please input father's height:\n"); scanf("%f",&father); prin

2022-02-10 20:38:21 3540

原创 C语言Hello world代码

C语言你好,世界

2021-12-27 20:38:37 16999

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除