/tmp/ccYD603t.o: In function `main': encod.c:(.text+0x57): undefined reference to `pfm_strerror'
encod.c:(.text+0x97): undefinedreference to `pfm_get_perf_event_encoding'
我试图用下面的python代码从Yahoo的搜索结果中抓取链接。我正在使用机械化的浏览器实例和漂亮的汤来解析HTML代码。WARNING:root:Some characters could not be decoded, and were replaced with REPLACEMENT CHARACTER.下面是代码。运行7-8次,你就会注意到。# -*- coding: utf-8 -*-