if语句 控制流程语句 语句:就是使用;分隔的代码 顺序语句:按照代码顺序从上往下执行所有的代码就是顺序语句 格式一: if(判断的条件){ 符合条件执行的代码; } 格式二: if(判断条件){ 符合条件的代码; }else{ 不符合条件的代码; } 格式三: if(判断条件){ 符合条件的代码; ...
分类:
其他好文 时间:
2021-05-24 11:12:19
阅读次数:
0
作用1:判断num是否是2的指数 if(num&(num-1)==0)//num是2的指数 解释:2的指数的二进制表示为1000,该值减一为0111,两者相与必为0。 作用2:计算num二进制表达中1的个数 int numOf1(int num){ int res=0; while(num!=0){ ...
分类:
其他好文 时间:
2021-05-24 11:08:43
阅读次数:
0
Connection conn = DriverManager.getConnection(dbURL, properties); if (conn != null) { Statement statement = conn.createStatement(); ResultSet resultSe ...
分类:
数据库 时间:
2021-05-24 10:40:20
阅读次数:
0
方法1 回环法 讲listA & listB看成一个环 class Solution { public: ListNode *getIntersectionNode(ListNode *headA, ListNode *headB) { //回环法 讲listA & listB看成一个环 //e.g ...
分类:
编程语言 时间:
2021-05-24 10:28:54
阅读次数:
0
ConfigureAppConfiguration((hostingContext, config) => { config.AddCryptoFile(Path.Combine(AppContext.BaseDirectory, "appsettings.json.crypto"), true); ...
分类:
Web程序 时间:
2021-05-24 10:20:52
阅读次数:
0
这篇文章主要介绍了Powershell 之批量获取文件大小的实现代码 效果图: 核心代码: $startFolder = "D:\" $colItems = (Get-ChildItem $startFolder | Where-Object {$_.PSIsContainer -eq $True} ...
分类:
系统相关 时间:
2021-05-24 10:08:31
阅读次数:
0
import QtQuick 2.9 // 导入模块 import QtQuick.Window 2.2 import QtQuick.Controls 2.2 // 导入的模块 Window { visible: true width: 640 height: 480 title: qsTr("H ...
分类:
其他好文 时间:
2021-05-24 10:03:58
阅读次数:
0
import QtQuick 2.9 // 导入模块 import QtQuick.Window 2.2 import QtQuick.Controls 2.2 import "./Jiejs.js" as Jie // 导入jswenjian1 Window { visible: true wid ...
分类:
Web程序 时间:
2021-05-24 10:00:00
阅读次数:
0
出现上图那样的情况 一般是没有在Startup类中的ConfigureServices中注入接口和实现类 注入一个就ok ...
分类:
其他好文 时间:
2021-05-24 09:04:56
阅读次数:
0
改变坐标文字: xAxis、yAxis下添加 axisLabel: { show: true, textStyle: { color: '#ffffff' } } 改变其他文字: title、legend、series下添加 textStyle: { color: '#ffffff' } ...
分类:
其他好文 时间:
2021-05-24 08:52:32
阅读次数:
0