• 2024-06-24Day29.继承介绍
    1.继承介绍_什么是继承_继承格式___bases__用法#1、什么继承?#I:继承是一种创建新类的方式,新建的类可称为子类或派生类,父类又可称为基类或超类,子类会遗传父类的属性#II:需要注意的是:python支持多继承#在Python中,新建的类可以继承一个或多个父类#继
  • 2024-06-24实验七
    task4#include<stdio.h>intfunc(){intans,i;charc;FILE*fp;fp=fopen("data4.txt","r");while(fp==NULL){printf("failtoopenfile\n");return0;}i=0;while(!feof(fp))
  • 2024-06-24实验7
    task4#include<stdio.h>intmain(){FILE*fp;charch;intcount=0;fp=fopen("d:\\data4.txt","r");if(fp==NULL){printf("failtoopenfile\n");return0;}while(!feof(fp)){
  • 2024-06-24实验七
    TASK4点击查看代码#include<stdio.h>intmain(){intcount=0;intch;FILE*fp;fp=fopen("data4.txt","r");if(fp==NULL){printf("failtoopenfile\n");return1;}
  • 2024-06-24实验7
    1.#include<stdio.h>#include<stdlib.h>intmain(){intch=0;inta=0;FILE*fp;fp=fopen("data4.txt","r");if(fp==NULL){printf("failtoopen\n");return1;}whil
  • 2024-06-24实验7 文件应用编程
    4.实验任务4:1#include<stdio.h>23intmain()4{5inti=0;6FILE*fp;7charstr[100];8charch;910fp=fopen("data4.txt","r");11if(fp==NULL)12{13printf("failt
  • 2024-06-24第七次实验
    1#include<stdio.h>2#include<stdlib.h>3intmain()4{5intch=0;6inta=0;7FILEfp;89fp=fopen("data4.txt","r");1011if(fp==NULL){12printf("failtoopen\n");13r
  • 2024-06-24实验七
    4.task.4#include<stdio.h>intmain(){FILE*fp;charch;intcount=0;fp=fopen("d:\\data4.txt","r");if(fp==NULL){printf("failtoopenfile\n");return0;}while(!feof(fp))
  • 2024-06-24实验7
    1#include<stdio.h>2#include<stdlib.h>3intmain()4{5intch=0;6inta=0;7FILE*fp;89fp=fopen("data4.txt","r");1011if(fp==NULL){12printf("failtoopen\n");
  • 2024-06-23实验7
    #include<stdio.h>intmain(){intcnt=0;charch;FILE*fp;fp=fopen("data4.txt","r");if(fp==NULL){printf("failtoopenfile\n");return0;}while((ch=fgetc(fp))!=
  • 2024-06-23python学习笔记-09
    面向对象编程-中面向对象三大特征:封装、继承、多态。封装:把内容封装起来便于后面的使用。对于封装来讲,就是使用__init__方法将内容封装道对象中,然后通过对象直接或者self获取被封装的内容。继承:子继承父的属性和方法。多态:所谓多态就是定义时的类型和运行时的类型不一样
  • 2024-06-23实验7_文件应用编程
    实验任务4#include<stdio.h>intmain(){FILE*fp;charch;intcount=0;fp=fopen("d:\\data4.txt","r");if(fp==NULL){printf("failtoopenfile\n");return0;}while(!feof(fp)){
  • 2024-06-23实验七
    task4#include<stdio.h>intmain(){intcnt=0;charch;FILE*fp;fp=fopen("data4.txt","r");if(fp==NULL){printf("failtoopenfile\n");return;}while((ch=fgetc(f
  • 2024-06-23实验7
    task4#include<stdio.h>intmain(){intcount;charch;FILE*fp;fp=fopen("data4.txt","r");if(fp==NULL){printf("failtoopenfile\n");return1;}count=0;wh
  • 2024-06-23实验7
    task4#include<stdio.h>intmain(){intcount=0;intch;FILE*fp;fp=fopen("data4.txt","r");if(fp==NULL){printf("failtoopenfile\n");return1;}while((
  • 2024-06-22实验七
    task41#include<stdio.h>2intmain()3{4inti,count=0;5intc;6FILE*fp;7fp=fopen("C://Users//Dell//Desktop//data4.txt","r");8if(fp==NULL)9{10printf("failtoopenfil
  • 2024-06-22实验七
    #include<stdio.h>intmain(){FILE*fp;intsum=0;charch;fp=fopen("data4.txt","r");if(fp==NULL){printf("不能打开文件\n");return1;}ch=fgetc(fp);while((ch=fg
  • 2024-06-22python学习笔记-10
    面向对象编程-下1.私有化属性语法:两个下划线开头,声明该属性为私有,不能在类的外部被使用或直接访问。使用私有化属性的场景:1.把特定的一个属性隐藏起来,不让类的外部进行直接调用。2.不让属性的值随意改变。3.不让子类继承。classPerson():def__init__(self):
  • 2024-06-22网络安全 文件上传漏洞-13 第十三关 Pass-13
    点击第十三关,并点击选择显示源码。可以看到,题目要求我们上传一个图片马到服务器:functiongetReailFileType($filename){$file=fopen($filename,"rb");$bin=fread($file,2);//只读2字节fclose($file);$strInfo=@unpack("C2chars",$bin);
  • 2024-06-22实验七
    任务41#include<stdio.h>23intmain(){4intcount=0;5charch;6FILE*fp;78fp=fopen("data4.txt","r");9if(fp==NULL){10printf("failtoopenfile\n");11r
  • 2024-06-21实验七
    #include<stdio.h>intmain(){ charch; intc=0; FILE*fp; fp=fopen("data4.txt","r"); while(!feof(fp)) { ch=fgetc(fp); if(ch==EOF) break; if(ch!=''&&ch!='\n'&&ch!
  • 2024-06-21实验7_文件应用编程
    #include<stdio.h>#include<string.h>#include<stdlib.h>intmain(){ intcnt=0; charc; FILE*fp; fp=fopen("data4.txt","r"); while(!feof(fp)) { c=fgetc(fp); if(c=='\n'||c==''||c==�
  • 2024-06-21实验7
    test4#include<stdio.h>intmain(){intcount=0;charch;FILE*fp;//以读的方式打开文本文件data1.txtfp=fopen("C://Users//21020//Desktop//data4.txt","r");//如果打开文件失败,输出提示信息并返回if(fp==NULL)
  • 2024-06-21实验7 文件应用编程
    task.4 #include<stdio.h>intmain(){FILE*fp;charch;intcount=0;fp=fopen("data4.txt","r");if(fp==NULL){printf("failtoopenfile\n");return;}while((ch=fg
  • 2024-06-21实验七
    task4#include<stdio.h>#include<ctype.h>intmain(){charfilename[100];FILE*file;intch;intcount=0;printf("请输入要统计字符数的文件名:");scanf("%s",filename);file=fopen(filename,"