又被老师要求去搞Python ,曰,,下午回顾了一下Python的基础知识,写了个爬取图片的程序,在此做个分享吧。不喜勿喷 import requests import time from bs4 import BeautifulSoup import uuid # 下载单个页面的一些图片 def ...
分类:
编程语言 时间:
2020-07-08 20:02:59
阅读次数:
82
<Table class="table" :columns="columns1" :data="tableData" highlight-row :max-height="500" border @on-selection-change="onSelectionChange" @on-row-cli ...
分类:
其他好文 时间:
2020-07-08 19:36:41
阅读次数:
281
这道题是字节的面试题,当场问我有点紧张没想出来,只答上来要交替阻塞,还是面试官提醒我用生产者消费者思路解决。 题目 有A类线程50个,任务是打印字符A。有B类线程50个,任务是打印字符B。现在异步启动这100个线程,问如何才能让他们交替打印AB字符? 解题思路 设两个信号SemaphoreA和Sem ...
分类:
编程语言 时间:
2020-07-08 10:31:30
阅读次数:
100
using System; public class DataHouse { public static void FindData( long ID) { if( ID>0 && ID<1000) Console.WriteLine( ID ); else throw new DataHouseE ...
一、导入openpyxl 在python中的命令行中敲入: pip install openpyxl 二、代码运行 以下为python中代码获取Excel中的数据: #前提:已准备好Excel表格数据,case.xlsx#①导入openpyxlimport openpyxlfrom openpyxl ...
分类:
编程语言 时间:
2020-07-08 00:49:48
阅读次数:
92
a、Core层 Authorization.Users.UserStore.cs public class UserStore : AbpUserStore<Role, User> { private readonly IRepository<User, long> _userRepository; ...
分类:
其他好文 时间:
2020-07-07 23:32:28
阅读次数:
203
1、加载依赖: MybatisPlus的依赖 (将mybatis、mybatis-spring的依赖去除) <!-- mybatisPlus的相关依赖, 不需要加载 mybatis-spring-boot-starter --> <dependency> <groupId>com.baomidou< ...
分类:
编程语言 时间:
2020-07-07 17:28:27
阅读次数:
60
Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row index starts from 0. 只额外开O(k)的空间,那就开一个 ...
分类:
其他好文 时间:
2020-07-07 15:03:33
阅读次数:
121
需要调试器 任何编程语言中最简单的调试形式是使用打印语句/日志并写入标准输出。这肯定可以工作,但是当我们的应用程序规模增加并且逻辑变得更加复杂时,它变得极其困难。将打印语句添加到应用程序的每个代码路径都不容易。这是调试器派上用场的地方。调试器可帮助我们使用断点和许多其他功能来跟踪程序的执行路径。De ...
分类:
其他好文 时间:
2020-07-07 12:49:45
阅读次数:
56
matplotlib 中的subplot的用法 一个figure对象包含了多个子图,可以使用subplot()函数来绘制子图: (首先我没有想明白为啥会有这么多的内容来介绍这一个函数,后来知道了原来这个函数还真的挺多的内容) 言简意赅: 首先,它的调用是这样子的:subplot(numbRow , ...
分类:
其他好文 时间:
2020-07-07 11:36:24
阅读次数:
54