string新技巧: int a, b; cin >> a >> b; string s = to_string(a + b); ...
分类:
其他好文 时间:
2021-06-18 19:21:57
阅读次数:
0
1.控制并发线程数的Semaphore Semaphore(信号量)是用来控制同时访问特定资源的线程数量,它通过协调各个线程,保证合理的使用公共资源。 线程可以通过acquire()方法来获取信号量的许可,当信号量中没有可用的许可的时候,线程阻塞,直到有可用的许可为止。线程可以通过release() ...
分类:
其他好文 时间:
2021-06-18 19:20:53
阅读次数:
0
1 #显示跑马灯文字 2 import os 3 import time 4 def main(): 5 content = str(input('输入显示内容:')) 6 while True: 7 os.system('cls') 8 print(content) 9 time.sleep(0. ...
分类:
其他好文 时间:
2021-06-18 19:20:19
阅读次数:
0
#include <stdio.h> #include <stdlib.h> #define N 10 typedef struct student { int num; char name[20]; int score; }STU; int main() { FILE *fin; STU st[N ...
分类:
其他好文 时间:
2021-06-18 19:14:39
阅读次数:
0
using System; using System.Net.Http; using System.Net.Http.Json; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static async Ta ...
分类:
Web程序 时间:
2021-06-18 19:08:41
阅读次数:
0
1.service层创建分页对象 Page<AreaDTO> pageData = new Page<>(pageIndex,pageSize); String cityIds = configParamService.getConfigValueByCode(PARAM_CODE,GROUP_CO ...
分类:
其他好文 时间:
2021-06-18 18:54:16
阅读次数:
0
TP框架使用命令行 <?php namespace app\command; use think\Db; use app\shopee\Item; use think\console\Input; use think\console\Output; use think\console\Command ...
分类:
其他好文 时间:
2021-06-17 17:23:24
阅读次数:
0
JavaScript JavaScript:基于对象和事件触发的弱类型脚本语言。脚本通常以文本保存,只在被调用时进行解释或编译。可以动态增删改HTML标签和CSS样式,动态校验数据。 JavaScript特点: 交互性:存在于所有Web浏览器中,能够增强用户与Web站点和 Web 应用程序之间的交互 ...
分类:
编程语言 时间:
2021-06-17 17:13:27
阅读次数:
0
在JS当中,数据类型分为基本数据类型和引用类型,其中基本数据类型(string,number,boolean,undefined,null,symnol......),引用类型为Object(Array、Object、Function......)。 内存分为栈内存和堆内存,其中栈内存用来存储基本数 ...
分类:
Web程序 时间:
2021-06-17 17:07:54
阅读次数:
0
实验任务三 1.正确输出,且生成了file3.dat 2.是正确的,且直观可读 实验任务四 1.正确输出,生成了file4.dat,且用记事本打开直观可读 2. #include <stdio.h> #include <stdlib.h> typedef struct student{ int nu ...
分类:
其他好文 时间:
2021-06-17 16:34:46
阅读次数:
0