cat electric_car.py 1 #! /usr/bin/python 2 # -*- coding:utf-8 -*- 3 4 from car import Car 5 6 class Battery(object): 7 """ 8 模拟电瓶 9 """ 10 def __init_ ...
分类:
其他好文 时间:
2021-02-19 13:19:52
阅读次数:
0
组合求和( Combination Sum) 1. 题目描述 Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of ...
分类:
编程语言 时间:
2021-02-18 13:37:18
阅读次数:
0
1. 题目描述 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining ...
分类:
移动开发 时间:
2021-02-18 13:31:34
阅读次数:
0
service.AddTransient<ITranTest, TranTest>(); service.AddSingleton<ISingTest, SingTest>(); service.AddScoped<ISconTest, SconTest>(); 一、使用方式 service.Add ...
分类:
Web程序 时间:
2021-02-18 13:13:51
阅读次数:
0
一、通过read 接收 1. 通过vim 定义一个test.sh的脚本 vim test.sh 2. 编写shell脚本 #! /bin/bash read name echo "$name It is a test" 3. 添加脚本执行权限 chmod +x test.sh 4. 执行脚本 [ro ...
分类:
其他好文 时间:
2021-02-18 13:13:07
阅读次数:
0
快速排序是用的比较多的排序算法,比如需要对“6 1 2 7 9 3 4 5 10 8”这几个数进行排序。方法是首先在这个序列中随便找一个数作为基准数。比如找 6 作为基准数, 然后需要将这个序列中所有比基准数 6 大的数放右边,比基准数小的数放 6 的左边,类似如下排列: 初始的状态下数字 6 在序 ...
分类:
编程语言 时间:
2021-02-18 13:11:13
阅读次数:
0
根据官方SDK简单封装了一下 实现了TCP 监听接收需要打印的数据 这里简单的规划了一下通信协议 满足工厂设备条码及物料单据统一模板高速打印 1、TCP SERVER监听及变量解析界面 2、使用TCP CLIENT调试工具发送数据包 3、根据预设模板填充字段,由于我的电脑没打印机所以这里生成PDF进 ...
分类:
其他好文 时间:
2021-02-18 13:09:39
阅读次数:
0
Team Name 留坑。 Prime Game 留坑。 XOR Sums 留坑。 Multiple Games 留坑。 Another Tree with Numb 留坑。 Bash Matrix 留坑。 Cell Shell 留坑。 Cut the Cake (Challenge) 留坑。 Dr ...
分类:
其他好文 时间:
2021-02-18 13:09:23
阅读次数:
0
一、题目描述 给定一个数组 nums 和滑动窗口的大小 k,请找出所有滑动窗口里的最大值。 示例: 输入: nums = [1,3,-1,-3,5,3,6,7], 和 k = 3输出: [3,3,5,5,6,7] 解释: 滑动窗口的位置 最大值 [1 3 -1] -3 5 3 6 7 3 1 [3 ...
分类:
其他好文 时间:
2021-02-18 13:06:38
阅读次数:
0
我们还可以使用jQuery添加广告弹窗,来看下是怎么实现的: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style type="text/css"> 7 #ad{ 8 width ...
分类:
Web程序 时间:
2021-02-17 15:02:03
阅读次数:
0