using Microsoft.AspNetCore.Mvc; using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Diagnostics; using System.L ...
分类:
Web程序 时间:
2020-02-01 14:33:12
阅读次数:
809
extensions.py文件# -*- coding: utf-8 -*- # 该扩展会在以下事件时记录一条日志: # spider被打开 # spider被关闭 # 爬取了特定数量的条目(items) import logging from collections import defaultd ...
分类:
其他好文 时间:
2020-02-01 12:24:49
阅读次数:
98
本文简要的分析了下Collections.synchronizedList 、CopyOnWriteArrayList、Vector线程安全的实现机制并对它们的读,写,迭代性能进行了对比。 ...
分类:
其他好文 时间:
2020-02-01 10:35:48
阅读次数:
58
一、创建demo项目 1.新建webapi项目,命名为“DemoProject”,去掉HTTPS勾选 1 using Microsoft.AspNetCore.Mvc; 2 using System.Collections.Generic; 3 4 namespace DemoProject.Con ...
分类:
Web程序 时间:
2020-01-31 18:51:47
阅读次数:
230
IO流 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.IO; using System.Text; namesp ...
<1>效果 白色:可行走 红色:阻碍 蓝色:起点周围的格子 绿色:路径 <2>代码 using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Diagnostics; usi ...
分类:
其他好文 时间:
2020-01-30 18:58:25
阅读次数:
62
from collections import Iterablefrom collections import Iterator'''可迭代对象:可以直接作用于for循环的对象统称为可迭代对象(Iterable)。可以用isinstance()去判断一个对象是否是Iterable对象可以直接作用于f ...
分类:
编程语言 时间:
2020-01-30 17:00:19
阅读次数:
76
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.T ...
代码: 1. import 'package:flutter/cupertino.dart'; class Counter with ChangeNotifier{ int num = 1; increase(){ num ++ ; notifyListeners();//加入监听者模式 } } 2 ...
分类:
其他好文 时间:
2020-01-29 20:13:15
阅读次数:
104
Set集合的特点: 不能存储相同的元素。 同时因为其是一个抽象的接口:所以不能直接实例化一个set对象。(Set s = new Set() )错误 该接口主要继承于Collections接口,所以具有Collection的一些常见的方法。 常见的方法: 方法 | 解释 | add( ) | 向集合 ...
分类:
编程语言 时间:
2020-01-28 21:27:30
阅读次数:
91