import unittest def sum_number(a, b): return a + b class MyTestCase(unittest.TestCase): # def test_something(self): # self.assertEqual(True, False) @c ...
分类:
编程语言 时间:
2020-07-01 00:08:35
阅读次数:
105
宝藏网站来源于b站UP主 “我是莫提" https://flatuicolors.com/ 前端配色参考网站 http://zhongguose.com/ 中国传统颜色网站 https://www.iconfont.cn/ 阿里矢量图标库网站 http://www.fontawesome.com.c ...
分类:
Web程序 时间:
2020-06-30 22:44:12
阅读次数:
93
Jump Game II (H) 题目 Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array r ...
分类:
其他好文 时间:
2020-06-30 09:14:16
阅读次数:
59
Multiply Strings (M) 题目 Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as ...
分类:
其他好文 时间:
2020-06-29 09:55:34
阅读次数:
55
Trapping Rain Water (H) 题目 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is ...
分类:
移动开发 时间:
2020-06-29 09:29:26
阅读次数:
60
mark标记 1.以下用例,标记test_send_http()为webtest # content of test_server.py import pytest @pytest.mark.webtest def test_send_http(): pass # perform some webt ...
分类:
其他好文 时间:
2020-06-28 00:05:25
阅读次数:
70
名称: 模板方法模式(Template Method Pattern) 问题: The Template Method pattern provides a method that allows subclasses to override parts of the method without r ...
分类:
其他好文 时间:
2020-06-27 20:10:54
阅读次数:
83
题目要求:数组中有10首歌曲。要求随机播放全部歌曲且不能重复播放。 笔试时时间比较紧,只想到了play1()这种思路(运气好还是通过了),play2()是后来想到的稍微比play1()强一点的思路,play3()是网上看到的思路不一样,所以也发了出来(附有原文链接,如果不同意可以删除)。 /** * ...
分类:
编程语言 时间:
2020-06-27 17:31:15
阅读次数:
112
io.open(): some_file=io.open('somefile.txt','w+') .close(): .flush():刷新缓存,好像有时没用? .read(n):读取字符个数 .readline():读取一行字符:也可以指定字符个数 .readlines():返回所有行;也可以指 ...
分类:
其他好文 时间:
2020-06-27 17:26:55
阅读次数:
75
使用现代C++如何避免bugs(上) How to avoid bugs using modern C++ C++的主要问题之一是拥有大量的构造,它们的行为是未定义的,或者程序员只是意想不到的。在各种项目中使用静态分析器时,我们经常会遇到这些问题。但是,众所周知,最好的方法是在编译阶段检测错误。让我 ...
分类:
编程语言 时间:
2020-06-27 16:10:05
阅读次数:
62