
Lv.1
e
签名:吃煎饼
在 【科普贴】系统叛变?还是黑客入侵?? 中回复
吉吉喵,举报!杨文庸因为 违法违规 举报我的 如何墙掉系统 贴子,这个帖子根本没有违法违规,请及时处理!
2020-02-07T10:22:31 点赞:3
在 [系统]编程猫把他毙了!!! 中回复
欸欸额,这里说明一下,我的header想法其实不太行
代码岛是通过设备IP分配的,所以还是删贴了吧,因为我认为黑客是通过程序进来的……
2020-02-07T15:56:56 点赞:0
在 【宇轩的小店铺】质量一等logo,还不快点点进来 中回复
帮我做个林克的logo,背景是风之杖林克,主标题写着 林克【换行】带你脱发,要30°倾斜
下面画一个Python图标,围绕着一堆代码
2020-02-08T14:12:08 点赞:0
在 哪个大佬能给我讲一下“返回值”是什么意思啊! 中回复
就是Python的return吗
比如你定义了+函数
然后print +(12,13)
就能print出函数返回值
2020-02-10T09:50:11 点赞:0
在 爬虫的方式搜搜狗网 中回复
def Search(Text, num):
header = {"User-Agent" : "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0;"}
request = urllib.request.Request('https://www.sogou.com/web?
2020-02-13T18:02:19 点赞:0
在 爬虫的方式搜搜狗网 中回复
query=%s&page=%s'% (Text,num), headers = header)
Myblabla = urllib.request.urlopen(request).read()
print("ok")
MySoup = BeautifulSoup(Myblabla,'html.parser',from_encoding = 'gbk')
Links = MySoup.find_all('a')2020-02-13T18:03:15 点赞:0
在 爬虫的方式搜搜狗网 中回复
file = open("Final.cpp",'a')
for Link in Links:
try:
if str(Link['href']).strip().startswith('/'):
print('link:%s,txt:%s'% ('http://www.sogou.com' + Link['href'].strip()+"\n",str(Link.get_text()).strip()+"\n"))
else:2020-02-13T18:03:46 点赞:0