随笔分类 -  python

摘要:影刀rpa 等等。 机器人流程自动化(Robotic process automation,简称RPA)。 帮你自动点击鼠标,输入文字的一个自动化工具。基本不需要编程。 阅读全文
posted @ 2023-05-23 13:18 微信公众号--共鸣圈 阅读(33) 评论(0) 推荐(0)
摘要:使用lxml import lxml.etree import lxml.html with open('/tmp/hzh/a.html', 'r') as file: data = file.read() html_str = '<p>hzh。<div>ddiivv</div></p> \n <p 阅读全文
posted @ 2023-04-07 16:08 微信公众号--共鸣圈 阅读(133) 评论(0) 推荐(0)
摘要:standalone_html.py: #!/usr/bin/env python # A simple script to suck up HTML, convert any images to inline Base64 # encoded format and write out the co 阅读全文
posted @ 2022-11-18 16:44 微信公众号--共鸣圈 阅读(266) 评论(0) 推荐(0)
摘要:如果你从不打算在游戏本身中绘制任何矢量图形或图元,并且坚持从磁盘加载图像,则Pyglet是很好的(对于2D游戏)。它也更清洁,因为不需要编写自己的游戏循环,不用担心速度,时间和响应速度。 但是,如果您必须即时生成图形,然后将它们保存为变量或文件,则pyglet变得相当复杂,因为您必须开始使用低级别的 阅读全文
posted @ 2021-06-04 13:51 微信公众号--共鸣圈 阅读(254) 评论(0) 推荐(0)
摘要:采用: https://github.com/Nuitka/Nuitka 安装: pip install nuitka 最简单的命令为: python -m nuitka --standalone --follow-imports testprocess.py 注意,好像nuitka不能将pytho 阅读全文
posted @ 2021-05-14 16:06 微信公众号--共鸣圈 阅读(1095) 评论(0) 推荐(0)
摘要:nginx再linux下可以自己编译,我采用的编译选项为: --prefix=/home/hzh/soft/softy/nginx-1.18.0 \ --with-threads \ --with-file-aio \ --with-http_ssl_module \ --with-http_v2_ 阅读全文
posted @ 2020-12-03 14:29 微信公众号--共鸣圈 阅读(216) 评论(0) 推荐(0)
摘要:1、qtcreator 若使用cmake作为编译工具,则cmake默认使用的是ninja作为其generator,若要将ninja改成unix makefile作为cmake的generator,则在这里改: Tools > Options > Kits > Kit kits可以翻译为构建套件。 2 阅读全文
posted @ 2020-07-18 10:23 微信公众号--共鸣圈 阅读(623) 评论(0) 推荐(0)
摘要:1, 安装: pip3 install scrapy scrapy依赖的包也会一并安装,不需要额外再安装什么东西了。 建议在virtualfish下安装,这样可以管理版本。 2, 新建项目: scrapy startproject craigslist 会在当前目录为你创建一个craigslist 阅读全文
posted @ 2020-06-19 15:59 微信公众号--共鸣圈 阅读(360) 评论(0) 推荐(0)
摘要:在住目录新建一个文件: .ideavimrc 文件里写上: 阅读全文
posted @ 2020-01-18 13:39 微信公众号--共鸣圈 阅读(1620) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2019-10-19 21:28 微信公众号--共鸣圈 阅读(2) 评论(0) 推荐(0)
摘要:本篇文章主要介绍了Python 通过selenium实现毫秒级自动抢购的示例代码,通过扫码登录即可自动完成一系列操作,抢购时间精确至毫秒,可抢加购物车等待时间结算的,也可以抢聚划算的商品。 该思路可运用到其他任何网站,京东,天猫,淘宝均可使用,且不属于外挂或者软件之类,只属于一个自动化点击工具。 阅读全文
posted @ 2019-10-08 22:22 微信公众号--共鸣圈 阅读(33205) 评论(2) 推荐(0)
该文被密码保护。
posted @ 2019-04-27 11:31 微信公众号--共鸣圈 阅读(4) 评论(0) 推荐(0)
摘要:An Old Hope Theme (theme, 推荐,且推荐它的 classic theme,安装后在颜色选项里选择,该插件的定制见文末) Cobalt2 (theme) Dracula for Visual Studio Code (theme) markdownlint Go for Vis 阅读全文
posted @ 2018-04-09 17:49 微信公众号--共鸣圈 阅读(2190) 评论(0) 推荐(0)
摘要:visual studio code (vsc) 对开发c,c++,node.js,javascript,python,html,golang,及撰写markdown等比较友好,同时支持git浏览及分屏对比,运行速度快,所以是值得一用的编辑器。 vscode阅读c和c++代码的插件clangd cl 阅读全文
posted @ 2018-04-09 07:32 微信公众号--共鸣圈 阅读(2204) 评论(0) 推荐(0)
摘要:1 机器学习和计算机视觉 Crab:灵活、快速的推荐引擎 gensim:人性化的话题建模库 hebel:GPU 加速的深度学习库 NuPIC:智能计算 Numenta 平台 pattern:Python 网络挖掘模块 PyBrain:另一个 Python 机器学习库 Pylearn2:一个基于 Th 阅读全文
posted @ 2017-12-06 18:18 微信公众号--共鸣圈 阅读(419) 评论(0) 推荐(0)
摘要:前几天发现一个可视化工具Dash,当看到它的交互式效果后突然就觉得眼前一亮。早就想写出来分享给大家,今天利用睡前一点时间发出来,希望能给有需要的朋友带来一点帮助或者多一个参考。 python + Dash 可以快速开发web应用,至少可以快速开发web原型!!! awesome dash and p 阅读全文
posted @ 2017-10-16 09:42 微信公众号--共鸣圈 阅读(8769) 评论(1) 推荐(0)
摘要:现在很多人用node js做区块链的开发,因为点对点并发是区块链中的难点技术之一,而node js天然的对并发支持比较好,因此比较有优势。 http://ecomunsing.com/build-your-own-blockchain # python https://github.com/dane 阅读全文
posted @ 2017-09-26 21:07 微信公众号--共鸣圈 阅读(498) 评论(0) 推荐(0)
摘要:http://zulko.github.io/blog/2013/09/19/a-basic-example-of-threads-synchronization-in-python/ We will see how to use threading Events to have functions 阅读全文
posted @ 2017-09-15 22:21 微信公众号--共鸣圈 阅读(213) 评论(0) 推荐(0)
摘要:本文使用的 cffi 官网网址:https://cffi.readthedocs.io/en/latest/overview.html cffi 自己本身使用了pycparser 这个库,是用python编写的c语言parser库,官网地址: https://github.com/eliben/py 阅读全文
posted @ 2017-09-01 09:14 微信公众号--共鸣圈 阅读(2012) 评论(0) 推荐(0)
摘要:对于含有 __init__.py 的目录(如adir),其实它就是一个package,它的子目录如果也包含 __init__.py,则只要将 adir 加入 sys.path,则它的字目录就不用加了,python在import的时候会自动遍历所有含有 __init__.py 的子目录。 python 阅读全文
posted @ 2017-08-16 11:38 微信公众号--共鸣圈 阅读(11475) 评论(0) 推荐(0)