V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  chaneyccy  ›  全部回复第 2 页 / 共 2 页
回复总数  29
1  2  
2020-04-09 16:06:22 +08:00
回复了 sfw1986430 创建的主题 酷工作 河南最棒最牛的纯互联网公司招聘产品了
摸鱼闲着无聊 搜了一下,UU 跑腿? 看着也不像啊
2020-04-09 15:41:39 +08:00
回复了 storypanda 创建的主题 职场话题 职场里乐于助人,可能并不是个好习惯
说来说去,你觉得你研究过很多 APP,可以解决一些问题,然而同事不买你账
后面找你借东西忘了还, 你又不好意思直接开口说呗...
抛开这个同事跟你有仇的可能性,
如果你俩不是很熟的话,你是运营然后要来解决技术上的问题
除非你的工作职能涉及到技术运用或者你已经跨部门知名度很高了,不然你觉得你有多少可信度?
我觉得我会 与 别人觉得我会 的区别

而且, ‘同事叫我别瞎操心’,如果这是原话的话 你们关系有点差了吧,我是没见过正常同事能这么说话的
2020-04-08 11:12:05 +08:00
回复了 szwhszw 创建的主题 杭州 3 月末互联网工作机会怎么样
我最近在 BOSS 上挂了简历,PM 需求好像有点多,来私聊查看的都是招的产品岗。
2020-04-01 10:21:40 +08:00
回复了 hejunxin 创建的主题 问与答 闲着无聊想爬小说网
div class = 'read-content j_readContent'
不过页面上写了"版权所有,侵权必究",还是别爬了吧,容易吃警告
2020-04-01 09:11:56 +08:00
回复了 kevinfk2 创建的主题 求职 帮朋友寻求内推机会。
你说的这个朋友.jpg
2020-03-05 16:12:07 +08:00
回复了 hujianxin 创建的主题 程序员 大家打字都用什么指法?
乱披风锤法
2020-01-14 15:40:03 +08:00
回复了 chaneyccy 创建的主题 Python 新人求解: Python 写入 txt 时数据丢失的问题
@Vegetable 感谢感谢,之前把从'a'改成'w'了,没考虑到这个原因,调回来正常了
2020-01-14 15:28:06 +08:00
回复了 chaneyccy 创建的主题 Python 新人求解: Python 写入 txt 时数据丢失的问题
@JCZ2MkKb5S8ZX9pq 好的,平时没有用 markdown 写内容的习惯~ 我去研究下
2020-01-14 15:23:28 +08:00
回复了 chaneyccy 创建的主题 Python 新人求解: Python 写入 txt 时数据丢失的问题
排版有点乱,更新一下

def download(href_urls):

for url in href_urls:

mod_titles = []

ses = requests.session()

html = ses.get(url, headers = header(), verify = False)

soup = BeautifulSoup(html.content, 'html.parser')

title_list = soup.find(class_ = 'g-ctnBar').find_all('a')

title1 = title_list[2].get_text()

title2 = title_list[3].get_text()

title3 = title_list[4].get_text()

title4 = title_list[5].get_text()

list_ = soup.find_all('div', class_ = 'detail-mod J_floor')[:-3]

for txt in list_:

txts = txt.get_text()

download_run(title1, title2, title3, title4, txts)


def download_run(title1, title2, title3, title4, txts):

path = 'C:/Users/Desktop/run/%s/%s/%s' %(title1, title2, title3)

if not os.path.exists(path):

os.makedirs(path)

with open('C:/Users/Desktop/run/%s/%s/%s/%s.txt' %(title1, title2, title3, title4), 'w')as f:

f.write(txts)
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3040 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 00:39 · PVG 08:39 · LAX 17:39 · JFK 20:39
Developed with CodeLauncher
♥ Do have faith in what you're doing.