摘要:
package dbr2020075090; public class Fruits { /** * 判断梨类、苹果类和水果类的关系,并通过对象类型转换调用彼此的属性和方法。 */ public String name; // 定义水果名称 Fruits (String name) { this.n 阅读全文
摘要:
表单 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> Test03 </title> </head> <body> <body background="https://w.wallhaven.cc/full/g7/wallha 阅读全文
摘要:
from math import pi as P from os.path import getsize from random import choice from itertools import * import math r = 3 print(round(Prr,2)) print(cho 阅读全文
摘要:
##测试 class Animal { public virtual void shout() { Console.WriteLine("动物叫!"); } } class Dog : Animal { public override void shout() { base.shout(); Con 阅读全文
摘要:
冒泡排序: namespace BubbleSorter { public class BubbleSorter { static void Main(string[] args) { int[] arr = new int[] {50,6,45,94,78}; BubbleSorter sh = 阅读全文
摘要:
namespace DBR { class Program { static void Main(string[] args) { /* * byte b = 3; b =(byte)(b+4); Console.WriteLine("b="+b); Console.ReadKey(); /* in 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Hello_World { class Program { static void Main(string[ 阅读全文
摘要:
Day6 2.9 一、用户交互Scanner 1.Scanner对象 获取用户输入 1.基本语法 Scanner s = new Scanner(System.in); 通过Scanner类的next()与nextLine()方法获取输入字符串,再读取前一般需要使用 hasNext()与hasNex 阅读全文
摘要:
Day5 2.8 一、运算符 1.算术运算符 +,-,*,/,%(取余),++,-- public class Class01 { public static void main(String[] args) { //++ -- 自增 自减 一元运算符 int a=3; int b=a++; //执 阅读全文