# 1. 选择排序:循环找最小值,依次放在左侧 def select_sort(arr): for i in range(len(arr)-1): min_index = i for j in range(i+1, len(arr)): if arr[j] < arr[min_index]: min ...
分类:
编程语言 时间:
2021-04-15 12:18:58
阅读次数:
0
题目: Implement a function that receives two IPv4 addresses, and returns the number of addresses between them (including the first one, excluding the la ...
分类:
其他好文 时间:
2021-04-15 12:16:50
阅读次数:
0
主要测试了各方式clone的情况: 1. 安装gitlab,配置ip:port。 常规步骤: yum install -y curl policycoreutils-python openssh-server wget https://mirrors.tuna.tsinghua.edu.cn/git ...
分类:
其他好文 时间:
2021-04-15 12:08:39
阅读次数:
0
[ { "m": "01", "v": 0.019, "dq": 0, "ts": null, "pf": null, "time": "2021-03-28 00:00:00", "stringTime": "2021-03-28", "flag": null }, { "m": "01", "v ...
分类:
编程语言 时间:
2021-04-15 12:00:42
阅读次数:
0
#####效果:div内部swiper滑动时,外部div背景图片随着变化 ######思路:获取swiper的索引,用:style定义背景图片 //template //外部背景图片 <div class="cont-box" :style="{backgroundImage: 'url(' + b ...
分类:
其他好文 时间:
2021-04-15 11:59:42
阅读次数:
0
注释: 本文中出现的所有题目均来自于网络 本人只是对其进行解答和注释 所有题目均为个人解答方案,如有纰漏或更好的解答欢迎指正 选择题1-10: 下面属于关键字的是: func def struct class [答案]:AC [解析&扩展]: func用于定义函数,故A正确。 def是python中 ...
分类:
其他好文 时间:
2021-04-15 11:59:14
阅读次数:
0
一.排序: 1.slice切片( ::-1) 2.reversed( ) 3.sorted( ,reverse=True)) 字母数字不可同时存在。默认为False升序,True降序。 4.filter(function,iterable) 二.常用 1.sum() 2.max() 3.min() ...
分类:
编程语言 时间:
2021-04-15 11:57:56
阅读次数:
0
相对路径问题: import os import sys # sys.path.append(os.getcwd()) # filename = "E:\python小脚本\测试导入\projects\project1\project1_1\Text1_1.txt" # 绝对路径 # filenam ...
分类:
编程语言 时间:
2021-04-14 12:44:36
阅读次数:
0
sys.exc_info() 获取异常 import sys try: raise ValueError('this is a exp') except Exception as ex: ex_type, ex_val, ex_stack = sys.exc_info() print(ex_type ...
分类:
编程语言 时间:
2021-04-14 12:39:26
阅读次数:
0
增强for循环 public class ForDemo{ public static void main(String[] args){ int[] numbers = {10,20,30,40,50}; //遍历数组元素 for(int x:numbers){ System.out.printl ...
分类:
编程语言 时间:
2021-04-14 12:36:49
阅读次数:
0