码迷,mamicode.com
首页 >  
搜索关键字:some negative feelin    ( 9286个结果
Python的unittest测试框架的一次简单应用
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
0045. Jump Game II (H)
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
0043. Multiply Strings (M)
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
0042. Trapping Rain Water (H)
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
pytest-使用自定义标记mark
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
恒生云融2020应届生JAVA笔试题:随机播放歌曲
题目要求:数组中有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(上)
使用现代C++如何避免bugs(上) How to avoid bugs using modern C++ C++的主要问题之一是拥有大量的构造,它们的行为是未定义的,或者程序员只是意想不到的。在各种项目中使用静态分析器时,我们经常会遇到这些问题。但是,众所周知,最好的方法是在编译阶段检测错误。让我 ...
分类:编程语言   时间:2020-06-27 16:10:05    阅读次数:62
9286条   上一页 1 ... 19 20 21 22 23 ... 929 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!