![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
happyleh
这个作者很懒,什么都没留下…
展开
-
Pyhon 调用 Go程序
使用 Pyhon 调用 Go,需要 3 个步骤: 编写支持动态链接库生成的 Go 代码 使用 go build 生成 .so 文件 在 Python 里通过调用 .so 文件使用 Go 代码 下面举整数相加的例子说明 首先我们使用 Go 语言编写一个简单的整数相加 Add() 函数,并演示在 Python 中调用的全过程。 编写 Go 代码 package main import "C" //export Add func Add(a, b int) int { return a + b原创 2020-08-16 23:11:49 · 2482 阅读 · 0 评论 -
使用python爬取猎聘网的职位信息
闲来无事,就像看看现在各个行业找工作的情况,写了个简单的爬虫,爬取猎聘网的职位信息。 话不多说,直接上代码。 #-*- coding:utf-8 -*- # 抓取猎聘的职位 import time import threading import requests import re from bs4 import BeautifulSoup def get_job_list(job): thread_name = threading.current_thread().name print(原创 2020-06-11 19:09:06 · 1929 阅读 · 0 评论