using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _6._5字符串的格式化 { class Pro ...
分类:
其他好文 时间:
2020-01-03 19:35:18
阅读次数:
87
1. arraylist soring 1) Collections.sort(al); 2) public void stackSorting(String stk) { // write your code here ArrayList<Integer> aa = new ArrayList<I ...
分类:
编程语言 时间:
2020-01-03 00:14:40
阅读次数:
61
事件处理 监听事件 可以用 v-on 指令监听 DOM 事件,并在触发时运行一些 JavaScript 代码。 <div id="box1"> <button v-on:click="counter += 1">Add 1</button> <p>The button above has been ...
分类:
其他好文 时间:
2020-01-02 22:53:22
阅读次数:
231
Python相关 Python安装 ubuntu配置pip源 windwos配置pip源 Python创建虚拟环境virtualenv和virtualenvwrapper Python3字典的setdefault方法 pythpn3 collections 模块 requests中文文档 json ...
分类:
其他好文 时间:
2020-01-02 20:56:04
阅读次数:
79
GitHub 中文社区:https://www.githubs.cn/collections 几款主流好用的markdown编辑器介绍: https://blog.csdn.net/davidhzq/article/details/100815332 Markdown教程: https://www. ...
分类:
其他好文 时间:
2020-01-01 20:23:12
阅读次数:
57
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 专高四 { class 协变 { static ... ...
分类:
其他好文 时间:
2020-01-01 18:44:18
阅读次数:
67
defaultdict在collections包中 defaultdict 解决的问题:如果用d = {} 初始化一个字典时,当访问到一个字典中不存在的键,这时会报错,程序中断。 而如果使用defaultdict 来创建一个字典,不会出现这种问题。 defaultdict的用法: d = defau ...
分类:
编程语言 时间:
2020-01-01 11:41:29
阅读次数:
61
队列是一个有序列表, 可以使用数组实现, 也可以使用链表实现 队列遵守先进先出的原则 1. 下面使用数组模拟一个队列 public class ArrayQueueDemo { public static void main(String[] args) { ArrayQueue queue = n ...
分类:
编程语言 时间:
2020-01-01 10:22:10
阅读次数:
84
集合嵌套 先创建集合和存入数字(person是故有自创类) 第一种1.keySet+增强for 第二种//2.keySet+Iterator entry方法1.entry+增强for 第二种4.entry+Iterator Collections集合工具类 模拟斗地主洗牌发牌 思路: ...
分类:
其他好文 时间:
2019-12-31 12:41:53
阅读次数:
85
代码: package com.oracle.demo02; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; public class DouDiZhu { //斗地主(发牌) p ...
分类:
编程语言 时间:
2019-12-31 12:40:21
阅读次数:
78