ICode9

精准搜索请尝试: 精确搜索
  • Python 基础二2021-12-23 09:30:54

    Python 实验–列表操作 # 1)创建一个空列表 score; score = [] # 2)调用append()函数在 score 列表中依次追加5个数值(该数值需随机产生,范围是70-100); import random for i in range(5): score.append(random.randint(70, 101)) print(score) # 3) 输出score 列表中第

  • chapter 7 结构体&共用体2021-11-22 01:03:48

    目录大学C语言程序设计chapter 7 结构体1. 结构体的认识2. 结构体信息输入输出3. 结构体成员函数4. 结构体排序5. 结构体指针6. 链表7. 共用体类型8. 枚举类型9. typedef声明新类型名 大学C语言程序设计 chapter 7 结构体 1. 结构体的认识 结构体概念:可以把各种类型的数据放在一起

  • 高级语言程序设计:综合程序设计实验2021-10-22 21:00:00

    一、实验题目: 问题描述:综合设计一个程序,要求存储每个学生的信息,包括学号、姓名、性别、出生日期、电话、5门课程的分数等。要求: (1) 输入学生信息,计算每个学生的平均分,并能分别按平均分和年龄(不考虑月份)从高到低排序,在屏幕上输出排序后的学生信息; (2) 将有不及格科目的学生信息写

  • 包装类的使用2021-09-06 16:32:55

    1 自动装箱 int t1=2; Integer t2=t1; 2、手动装箱:使用构造方法 Integer t3=new Integer(t1); 1、自动拆箱 int t4=t2; 2、手动拆箱:使用intValue方法 int t5=t2.intValue(); 拆箱为其他基本数据类型,使用对应的xxxValue方法 double t6 = t2.doubleValue(

  • 牛客网||BC11 学生基本信息输入输出2021-08-25 13:34:18

    牛客网||BC11 学生基本信息输入输出 最后通过的代码: import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner quan=new Scanner(System.in); String[] date=quan.nextLine().split("[;,]"); int xuehao

  • 在if结构中的逻辑运算符2021-04-11 23:59:13

    逻辑运算符 运算符 汉语名称 表达式 说明 && 于,并且 条件1&&条件2 两个条件为真,结果为真,两个有一个假,结果为假 || 或,或者 条件1||条件2 两个条件一个为真,结果

  • TypeScript 变量声明2021-02-04 18:05:24

    var uname:string = "Runoob"; var score1:number = 50; var score2:number = 42.50 var sum = score1 + score2 console.log("名字: "+uname) console.log("第一个科目成绩: "+score1) console.log("第二个科目成绩: "+score2) console.log("总成

  • 4.值类型和引用类型2020-12-29 18:02:27

    class Program { static void Main(string[] args) { //值类型,观察a的值 int a = 20; int b = a; b += 5; //引用类型,观察score1的值得变化 int[] score1 = { 29, 79, 30, 12 }; int[] score2 = score1; score2[0] = score1[3] + 100; f

  • 跟哥一起学python(3)- 理解“变量”2020-05-05 17:58:33

    我们把前面的程序稍微改一下,来了解python中的变量。  # file: ./4/4_1.py # 定义变量 hello_str = "hello, world!" # 字符串打印 print(hello_str)    建议通过视频来学习本节内容: 查看本节视频 这段代码实现的功能也是在终端打印出“hello,world!”这一字符串。与我们最开

  • 对于操作float类型的数据,返回int 类型数据操作示例2020-04-29 10:07:38

    /** * @auto dh * @create 2020-04-29-9:46 */public class Test011 { public static void main(String[] args) { Float score1=23.4f; Float score2=23.3f; System.out.println(Float.compare(score1,score2));//正确 System.out.println((int

  • 2_01_MSSQL课程_查询2019-11-11 11:57:06

    查询   1.查询结果的别名       列 as 别名 (建议用这种)       列 别名       别名=列   Select sum(score1) as 成绩1,sum(score2)as  成绩2 from talScore   2.聚合函数     Avg()    Count()    Sum()  Min()/Max()   Select max(score1),min(

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有