代码例子如下 public class Father{ private int i = test(); private static int j = method(); static{ System.out.print("(1)"); } Father(){ System.out.print("(2 ...
分类:
其他好文 时间:
2021-03-09 13:44:24
阅读次数:
0
一 资产入库处理 1.1 连接数据库 在192.168.100.101安装数据库,并给总控机授权可以操作,并创建一个autoserver的数据库,密码123456 settiing.py 配置数据库连接 DATABASES = { 'default': { 'ENGINE': 'django.db. ...
分类:
数据库 时间:
2021-03-09 13:41:36
阅读次数:
0
1 """ 2 python程序的流程 3 """ 4 # 分支结构 5 # if else 6 import math 7 8 x = -37 9 if x < 0: 10 y = math.fabs(x) 11 else: 12 y = math.sqrt(x) 13 print("计算的结果是 ...
分类:
编程语言 时间:
2021-03-09 13:36:20
阅读次数:
0
| ## 注释 | | | | 1. 单行注释 | | | | java | | //这是一个注释 | | | | | | 2. 多行注释 | | | | java | | /* | | 这是一个注释 | | */ | | | | | | 3. 文档注释 | | | | java | | /** | ...
分类:
编程语言 时间:
2021-03-09 13:34:14
阅读次数:
0
mystr = 'hello world and chris and java and python' #find(子串,开始位置,结束位置) 找不到返回-1 print(mystr.find('and')) print(mystr.find('and',15)) print(mystr.find( ...
分类:
编程语言 时间:
2021-03-09 13:15:53
阅读次数:
0
打印当前记录,直接 打印报表:多条记录 begin frxReport1.ShowReport; frxReport1.Print; end;//预览 ,打印 frxReport1.LoadFromFile('*****.fr3') ;//载入模板 frxReport1.PrepareReport( ...
分类:
其他好文 时间:
2021-03-09 12:55:05
阅读次数:
0
一、类的初始 1.类的结构 class Human: """ 此类主要是构建人类 """ mind = '有思想' # 第一部分:静态属性 属性 静态变量 静态字段 dic = {} l1 = [] def work(self): # 第二部分:方法 函数 动态属性 print('人类会工作') c ...
分类:
编程语言 时间:
2021-03-08 14:14:08
阅读次数:
0
作用域 def test1(): print("in the test1")def test(): print("in the test") return test1 》test1 是函数test1的IP地址s = test() >运作test()结果是 in the test ,然后返回test1 ...
分类:
其他好文 时间:
2021-03-08 13:36:19
阅读次数:
0
#!/bin/bash #for.sh for i in `cat ./ip.txt`; do ip=`echo $i|awk -F: '{print $1}'` num=`echo $i|awk -F: '{print $2}'` echo $ip sleep 1 echo $num sleep ...
分类:
其他好文 时间:
2021-03-06 14:46:46
阅读次数:
0
[可持久化权值线段树] [模板] [指针版本] \[ 1 \leq n \leq 2e5\\ |a_i| \leq 1e9 \] 感觉动态开点用指针好理解一点 代码 #include<bits/stdc++.h> #define eps 1e-8 #define equals(a,b) (fabs( ...
分类:
其他好文 时间:
2021-03-06 14:43:50
阅读次数:
0