GCC中的弱符号与强符号 我们经常在编程中碰到一种情况叫符号重复定义。多个目标文件中含有相同名字全局符号的定义,那么这些目标文件链接的时候将会出现符号重复定义的错误。比如我们在目标文件A和目标文件B都定义了一个全局整形变量global,并将它们都初始化,那么链接器将A和B进行链接时会报错: [htm ...
分类:
其他好文 时间:
2018-01-11 19:09:23
阅读次数:
268
原本该在过WebpackOptionsApply时讲解这个方法的,但是当时一不小心过掉了,所以在这里补上。 compiler.resolvers 该对象的三个方法均在WebpackOptionsApply中生成,代码如下: 由于调用的是一个工厂函数,所以用normal作为示例讲解。 其中参数中的re ...
分类:
Web程序 时间:
2018-01-11 17:26:22
阅读次数:
173
异常信息:org.apache.poi.openxml4j.exceptions.InvalidFormatException:Packageshouldcontainacontenttypepart[M1.13]异常原因:2007版excel和2003版excel文件格式不同导致:HSSFWorkbook&HSSFSheet:支持xls格式;XSSFSheet&XSSFSheet
分类:
其他好文 时间:
2018-01-10 23:42:55
阅读次数:
519
使用help(open)查看open函数的详细使用方法
open(file, mode=‘r‘, buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)
Open file and return a stream. Raise IOError upon failure.
分类:
编程语言 时间:
2018-01-09 18:41:47
阅读次数:
275
Representation revisited Knowledge representation languages should be declarative, compositional, expressive, context independent, and unambiguous. 2. ...
分类:
其他好文 时间:
2018-01-09 14:48:08
阅读次数:
259
2007年1月我大学毕业进入SAP Chengdu从事开发工作,到今天已经整整11年了。 这张图在ABAP开发圈子里曾广为流传: 为了避免这种窘境发生在ABAPer身上,我们应该做点什么呢? 2017年刚开始的时候,我曾经在SAP community写过一篇文章: "What should an A ...
分类:
其他好文 时间:
2018-01-06 23:24:03
阅读次数:
222
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n ...
分类:
其他好文 时间:
2018-01-06 16:01:58
阅读次数:
139
AVPacket注解 AVPacket 是一个结构体,存储压缩数据。可作为编码器的输出,解码器的输入。 对于 Video 一般包含一个压缩帧,对于 Audio 可能包含多个压缩帧。 编码器允许输出空 packets,没有包含压缩数据,仅包含附加数据,比如在编码结尾更新参数。 AVPackets 是 ...
分类:
其他好文 时间:
2018-01-06 00:34:16
阅读次数:
210
Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the numbe ...
分类:
其他好文 时间:
2018-01-05 20:46:29
阅读次数:
147
(custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should co ...
分类:
系统相关 时间:
2018-01-04 00:27:08
阅读次数:
288