Java的特性和优势 1.简单性 2.面对对象 3.可以执行 4.高性能 5.分布式 6.动态性 7.多线程 8.安全性 9.健壮性 java的三大版本 JavaSE:标准版 (桌面程序,控制台开发...) JavaME:嵌入型开发 (手机、小家电...) JavaEE:企业级开发 (web端,服务 ...
分类:
编程语言 时间:
2021-02-20 11:45:39
阅读次数:
0
包装类型(十六) 我们已经知道,Java的数据类型分为两种,基本类型和引用类型 基本类型有:byte short int long float double char boolean 引用类型有:类和接口 引用类型可以赋值为null,但基本类型不能赋值为null String s = null; i ...
分类:
其他好文 时间:
2021-02-19 13:47:14
阅读次数:
0
因为我数据库字段存的是0和1,在使用iview的Switch控件的时候,它是bool值判断,非常不好使,于是搞个计算属性实时监听,它有get和set两个方法,很方便 代码如下: <i-switch v-model="IsEnable" /> computed: { IsEnable: { get: ...
分类:
其他好文 时间:
2021-02-19 13:46:34
阅读次数:
0
mysql下载地址:https://dev.mysql.com/downloads/mysql/8.0.html 下载后解压: 新建my.ini文件 [Client] port = 3306 [mysqld] #设置3306端口 port = 3306 # 设置mysql的安装目录,注意斜杠,需要两 ...
分类:
数据库 时间:
2021-02-19 13:34:12
阅读次数:
0
一: string作为C++常用的一个类,得熟悉它的一些常用的方法。在使用这个类之前,得加上头文件 #include <string> #include <stdexcept> //标准的异常类的库 二: (1)获取string的元素个数方法,还有访问string中的每个元素的方法 void tes ...
分类:
编程语言 时间:
2021-02-19 13:29:26
阅读次数:
0
cat electric_car.py 1 #! /usr/bin/python 2 # -*- coding:utf-8 -*- 3 4 from car import Car 5 6 class Battery(object): 7 """ 8 模拟电瓶 9 """ 10 def __init_ ...
分类:
其他好文 时间:
2021-02-19 13:19:52
阅读次数:
0
#include<iostream> #include<list> #include<string> #include<cstdio> using namespace std; //使用list(双向链表)容器对象实现简单的学生管理系统 //list简单使用 class Student{ //学生基 ...
分类:
其他好文 时间:
2021-02-19 13:03:05
阅读次数:
0
我的第九个代码 #define _CRT_SECURE_NO_WARNINGS 1#include<stdio.h> struct Book{char name[20];short int price;}; int main(){struct Book b1 = { "C语言程序设计",45 };p ...
分类:
其他好文 时间:
2021-02-19 12:52:44
阅读次数:
0
一、String类的常用方法 返回当前字符串中给定位置的字符: char charAt(int index) 返回给定字符串在当前字符串中的位置: int indexOf(String str) 返回当前字符串的长度: int length() 判断当前字符串是以指定字符开始或结束的: boolea ...
分类:
其他好文 时间:
2021-02-18 13:42:38
阅读次数:
0
System.out.println((char)(1 + '0')); // (char)(1 + 48) System.out.println((char)1 + '0'); // 1 + 48 System.out.println((char)1 + '1'); // 1 + 49 Syste ...
分类:
其他好文 时间:
2021-02-18 13:41:18
阅读次数:
0