package com.kuang.struct; public class TestDemo { public static void main(String[] args) { //打印三角形 5行 for (int i = 1; i <= 5; i++) { for (int j = 5; j ...
分类:
其他好文 时间:
2021-04-14 12:09:53
阅读次数:
0
// 1.Java方法 public static void main (String args[]){ int res = sum(1, 2); // int res = HelloWorld.sum(1, 2); System.out.println(res); } // 求和 public s ...
分类:
编程语言 时间:
2021-04-14 12:05:41
阅读次数:
0
/** * 跨域请求设置 */ function checkAllowOrigin() { //从配置文件获取允许源域名 $allowOrigin = explode(',', env('app.allow_origin')); if (in_array('*', $allowOrigin)) { ...
分类:
Web程序 时间:
2021-04-14 12:05:15
阅读次数:
0
前面,已经对类和对象有一个简单的了解。今天讲述一下“类的初始化之init函数”,这很多人一直都难以理解,好好看看吧! __init(self)__函数 仔细观察这个函数的构造,下面来絮叨絮叨: ① init函数前后各有2个下划线,记住:是2个下划线; ② 初始化函数init,在创建对象的时,就"自动 ...
分类:
编程语言 时间:
2021-04-13 12:45:34
阅读次数:
0
类/装饰器 @property装饰器负责把类中的方法转换成属性来调用 有三种调用方法 方法一:@property直接加在需要转换的方法上 class People: def __init__(self, name, weight, height): self.__name = name self.w ...
分类:
其他好文 时间:
2021-04-13 12:41:12
阅读次数:
0
package com.zhang.www.base.operater; public class Demo06 { public static void main(String[] args) { //++ -- 自增 自减 一元运算符:一个数字就可以运算 int a=3; int b=a++; ...
分类:
其他好文 时间:
2021-04-13 12:33:54
阅读次数:
0
package com.zhang.www.base.operater; public class Demo05 { public static void main(String[] args) { //关系运算符返回的结果: 正确,错误 布尔值表示 //if int a=10; int b=20; ...
分类:
其他好文 时间:
2021-04-13 12:33:43
阅读次数:
0
题目来自:http://218.5.5.242:9018/JudgeOnline/problem.php?id=1812 题目描述 棒棒棒有一根长度为n的棒棒,现在他用Prehistorical Power把这根棒棒折成一个长方形且不能是正方形。他想知道他有多少种折法。 输入 输入一行,有一个n,为 ...
分类:
编程语言 时间:
2021-04-13 12:26:55
阅读次数:
0
from flask import Flask from flask_restful import Api,Resource app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return ...
分类:
其他好文 时间:
2021-04-13 12:26:40
阅读次数:
0
` /** * @Description: base64字符串转化成图片 * @Param: * @return: * @throws Exception * @author: hw * @date: 2021/4/12 15:45 */ public static boolean Generate ...
分类:
其他好文 时间:
2021-04-13 12:22:14
阅读次数:
0