#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student { int id; char name[20]; char subject[20]; / float perf; fl ...
分类:
其他好文 时间:
2020-12-25 11:55:05
阅读次数:
0
从上到下打印出二叉树的每个节点,同一层的节点按照从左到右的顺序打印。 例如: 给定二叉树: [3,9,20,null,null,15,7], 返回: [3,9,20,15,7] 提示: 节点总数 ? 1000 BFS /** * Definition for a binary tree node. ...
分类:
其他好文 时间:
2020-12-24 11:52:04
阅读次数:
0
{myproject}/websocket.py 1 # websocket.py 2 async def websocket_application(scope, receive, send): 3 while True: 4 event = await receive() 5 6 if even ...
分类:
Web程序 时间:
2020-12-24 11:39:43
阅读次数:
0
上次搞完后调试发现,不管ant执行接口的结果是是否为失败,在Jenkins看来执行ant命令这一步始终是成功的。因此配置了失败时发邮件、企业微信通知后,压根就收不到通知,因为根本不会显示失败。 因此要考虑解决,ant执行的接口有失败时,怎么让Jenkins整个流程构建失败,从而达到失败通知的效果。 ...
分类:
微信 时间:
2020-12-23 12:15:52
阅读次数:
0
public bool IsBookBeOverdue(DateTime _beTime) { bool resultFlg = false; int compNum = DateTime.Compare(DateTime.Now, _beTime); //t1> t2 if (compNum > ...
当我们想穷举一个类型的所有可能值时,当可能值过多,不免会遗漏过多的东西。 通常我们穷举一个值的所有可能,我们会采用switch或者if else,当然,这是可行的,下面看一个if else例子 function test(p:1|2){ if(p 1){ return 1 }else if(p 2) ...
分类:
其他好文 时间:
2020-12-22 13:12:56
阅读次数:
0
#include<stdio.h>intmain(){intn;/输入的正整数n/intstep=0;/计算步数/scanf("%d",&n);/*输入正整数n*/for(step=0;n>1;step++){if(n%2==0)/*如果n是偶数,则除以2*/n=n/2;else/*如果n是奇数,则用3n+1除以2*/n=(3*n+1)/2;}/*结束for循环*/pri
分类:
其他好文 时间:
2020-12-22 13:07:07
阅读次数:
0
1、 初始化centOS7 curl http://pigx.vip/os7init.sh | sh -s 主机名 源码 #!/bin/bash # init centos7 ./centos7-init.sh 主机名 # 检查是否为root用户,脚本必须在root权限下运行 if [[ "$(wh ...
分类:
其他好文 时间:
2020-12-22 12:31:38
阅读次数:
0
.pro 1 QT += core gui 2 3 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 4 5 CONFIG += c++11 6 7 # The following define makes your compiler emit warn ...
function ajaxGet(url) { return new Promise((resolve, reject) => { let xhr = new XMLHttpRequest(); xhr.open("GET",url,true); xhr.send(); xhr.onreadysta ...
分类:
Web程序 时间:
2020-12-22 12:01:40
阅读次数:
0