Python自动化完成tb喵币任务
2019双十一,tb推出了新的活动,商店喵币,看了一下每天都有几个任务来领取喵币,从而升级店铺赚钱,然而我既想赚红包又不想干苦力,遂使用python来进行手机自动化操作,目测全网首发!
用到的库:
re
os
time
- 1
- 2
- 3
- 4
思路:
- 下载adb命令安装包
- 打开手机开发者选项(点击系统设置,连点5次系统版本,即可在辅助功能或其他选项中找到开发者选项,此功能无害,可不必关闭)
- 在开发者选项中找到USB调试打开(反是有USB字样选项的全部同意,有提示风险也同意,PS:自己操作鸡毛风险没有,在一些商厦的有免费充电桩,若此充电桩提示请求USB调试请拒绝,此行为是风险操作,有可能获取隐私!)
- 手机连接电脑
5. 将仅限USB充电调至MIDI模式(部分手机有,任务栏下拉)(部分手机在仅充电模式下无法连接) - 调至tb喵币做任务界面
- 将.py文件移动至adb文件夹目录下
- 在开发者界面下打开指针位置
- 填入X,Y坐标
- 运行脚本
import os,re
import time
print('-----ctrl+c终止程序-----------')
task=int(input('请输入任务个数:'))
chose=int(input('请选择自定位[1]或手动输入[2]:'))
print('author:刘秉哲')
list=[]
list1=[]
def go(x,y):
for i in range(task+1):
os.system('adb shell input tap {} {}'.format(x,y))#触摸店铺按钮
print('---开始任务---')
time.sleep(4)
os.system('adb shell input tap {} {}'.format(1,1))#模拟滑动界面
print('---等待25秒---')
time.sleep(25)
print('---领取完成---')
time.sleep(4)
os.system('adb shell input keyevent 4')
time.sleep(4)
#os.system('adb shell input tap 518 2202')
print('第{}任务领取完成'.format(i+1))
print('______________________')
def go_2():
try:
print('获取坐标中')
file = os.listdir('.')
if os.path.exists('123.txt'):
#if (i.endswith('.txt')):#判断当前文件是否有123.txt
c=open('123.txt',encoding='UTF-8')
a=c.read()
#正则寻找去进店的按钮位置
d=re.search('<node index="2" text="去进店"(.*?)/>',a).groups()
f=re.search(' bounds="(.*?)"',str(d)).groups()
g=re.search('\[(.*?)\]',f[0]).group(1)
list.append(g.split(','))#将坐标添加到列表
else:
try:#这里两次获取xml,以防获取的第一个为安卓非IDE情况下的xml
os.system('adb shell uiautomator dump /sdcard/ui.xml')
time.sleep(2)
os.system('adb shell uiautomator dump /sdcard/ui.xml')
os.system('adb pull /sdcard/ui.xml 123.txt')
size=get_FileSize('123.txt')#123.txt是淘宝喵币任务页面的布局
if size>=0.03:#第一次获取ui会出现文件非淘宝苗币的xml
file = os.listdir('.')
c=open('123.txt',encoding='UTF-8')
a=c.read()
d=re.search('<node index="2" text="去进店"(.*?)/>',a).groups()
f=re.search(' bounds="(.*?)"',str(d)).groups()
g=re.search('\[(.*?)\]',f[0]).group(1)
list.append(g.split(','))
print('获取成功')
else:
print('xml文件错误正在重新下载,请勿翻动手机界面')
os.remove('123.txt')
go_2()
except:
print('错误')
go_2()
except:
print('error,正在重新获取')
def get_FileSize(filePath):
fsize = os.path.getsize(filePath)
fsize = fsize/float(1024 * 1024)
return round(fsize, 2)
if chose1:
try:
go_2()
print(“当前坐标:{},{}”.format(list[0][0],list[0][1]))
go(int(list[0][0])+20,int(list[0][1])+20)
except:
print(‘error’)
if chose2:
x=int(input(‘请输入任务X坐标:’))
y=int(input(‘请输入任务y坐标:’))
go(x,y)
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
PS:代码部分命名仓促,见谅。
1 脚本1功能自动获取下X,Y坐标,大概率成功,小概率需要自行通过2功能修改。
2 脚本还有不足之处,欢迎指出。
3 123.txt是当前淘宝喵币页面的安卓布局,里面有当前的布局及其按钮位置 。
4 当你想为另一台手机在同一台电脑上运行的时候,请手动删除123.txt,手机型 号不同,布局不同。
问题与难点:
1 实现tb按钮的自定位
2 小几率出现返回任务界面 20个任务会消失(网速和手机性能影响)
3 部分手机会出现坐标定位后,手机无反应,请根据提示的当前坐标,选择2功能,然后将坐标数增减10进行调试
4 error: device not found :手机没有正确连接至电脑(检查adb)
5 检查当前文件夹下的123.TXT 的大小是否在30KB以上,在10KB一下说明获取失败,删除123.txt,重新打开软件获取(未知bug)
6 ERROR: null root node returned by UiTestAutomationBridge. 安卓P以上的bug 请多次开关程序
7 脚本不可与adb文件夹(platform-tools)分离,否则无法运行!
8 出现闪退请多次开关程序
2功能可以用于20个任务下面的其他浏览任务,坐标可在123.txt中找到也可在开发者指针位置定位,这里不在赘述。
这里也有封装成exe的,可直接使用,欢迎体验:
https://www.lanzous.com/i71giqd
- 1
adb组件单独下载:
https://www.lanzous.com/i71gllg
- 1
如果对你有用,就点个赞吧!
</div>
<link href="https://csdnimg.cn/release/phoenix/mdeditor/markdown_views-e9f16cbbc2.css" rel="stylesheet">
</div>
</article>
<div class="postTime">
<div class="article-bar-bottom">
<span class="time">
文章最后发布于: 2019-10-25 00:31:30 </span>
</div>
</div>
<div class="hide-article-box hide-article-pos text-center">
<a class="btn-readmore" data-report-click="{"mod":"popu_376","dest":"https://blog.csdn.net/qq_44198436/article/details/102734420","strategy":"readmore"}">
展开阅读全文
<svg class="icon chevrondown" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#csdnc-chevrondown"></use>
</svg>
</a>
</div>
<!--打赏开始-->
<div class="reward-user-box">
<span class="reward-word" style="color:#B4B4B4 !important">有 <span class="num">0</span> 个人打赏</span>
</div>
<!--打赏结束-->
<div class="recommend-box"><div class="recommend-item-box type_blog clearfix" data-report-click="{"mod":"popu_614","dest":"https://blog.csdn.net/weixin_40901068/article/details/102701142","strategy":"BlogCommendFromMachineLearnPai2","index":"0"}">
<div class="content" style="width: 962px;">
<a href="https://blog.csdn.net/weixin_40901068/article/details/102701142" target="_blank" rel="noopener" title="使用Python刷淘宝喵币(低阶入门版)">
<h4 class="text-truncate oneline" style="width: 802px;">
使用<em>Python</em>刷淘宝喵<em>币</em>(低阶入门版) </h4>
<div class="info-box d-flex align-content-center">
<p class="date-and-readNum oneline">
<span class="date hover-show">10-23</span>
<span class="read-num hover-hide">
阅读数
728</span>
</p>
</div>
</a>
<p class="content" style="width: 962px;">
<a href="https://blog.csdn.net/weixin_40901068/article/details/102701142" target="_blank" rel="noopener" title="使用Python刷淘宝喵币(低阶入门版)">
<span class="desc oneline">这两天因为双十一来临,到处收集喵币,反反复复的点击操作搞得我十分头痛,遂产生了写个脚本自动点击的想法。【低阶入门版本】之中不牵扯图像文字转换,或者图像匹配的问题,只是简单的屏幕开屏、点击和滑动。如果你...</span>
</a>
<span class="blog_title_box oneline ">
<span class="type-show type-show-blog type-show-after">博文</span>
<a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_40901068">来自: <span class="blog_title"> 学习日常</span></a>
</span>
</p>
</div>
</div>
-
weixin_45357289 2天前 #9楼 厉害 举报回复
- 上一页
- 1
- 2
- 下一页
查看 29 条热评
ADB连接手机做淘宝猫币任务领取猫币
06-01 阅读数 450
六一儿童节啦~淘宝也推出了好多活动,其中就有一个猫币的活动~这个挺有意思的,但是领猫币任务好麻烦,要在页面等待10秒才能获得300猫币,但是每天可以做50次,如果都做完的话可是一笔不小的收入~这是实验... 博文 来自: lyy的博客
python自动化测试
11-09 阅读数 2043
web自动化和selenium自动化三、Python自动化测试学习路线第一步:先学python-------python不过关,别谈自动化。 第二步:Selenium框架 第三步:unittest... 博文 来自: Spring Lee的博客
Python怎么读, Python能做什么,可以自学Python吗?
08-19 阅读数 7701
Python怎么读?如今,Python越来越火,屡次超越Java、C++成为编程语言排行榜第一的语言。可语言学了这么久,这个单词到底怎么读?现在让我们来深入研究一下。我们身边大多数人都叫它“派森”,包... 博文 来自: weixin_38741996的博客
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_59" data-pid="59"><script type="text/javascript"> (function() { var s = "_" + Math.random().toString(36).slice(2); document.write('<div style="" id="' + s + '"></div>'); (window.slotbydup = window.slotbydup || []).push({ id: "u3491668", container: s }); })();
Appium+python自动化3-启动淘宝app(转)
05-08 阅读数 220
转:(https://www.cnblogs.com/yoyoketang/p/6128735.html)前言前面两篇环境已经搭建好了,接下来就是需要启动APP,如何启动app呢?首先要获取包名,然后... 博文 来自: 墓地行者的博客
python自动化学习
03-14 阅读数 1121
python自动化框架学习路线 上学期间,学习编程课程,接触编程语言C语言、C++,JAVA,QT,因为上学期间,学习不是... 博文 来自: 张燕伟
Python自动化脚本 for循环+数字拼接
01-28 阅读数 555
Python自动化脚本for循环+数字拼接在写Python自动化脚本时,在执行多个重复操作时遇到的,需将字符串和数字进行拼接,使用for循环,进行操作。... 博文 来自: Luna_chang的博客
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_60" data-pid="60"><iframe src="https://adaccount.csdn.net/#/preview/262?m=cQEQbpHcDSAiySHcLQibmnbpbitfJHtbEXtppbQbHDbXpDHbitQJtWUAibSQtptLLttbtLLSnQQttcXUSpJJtinppiDpHiiDitQQ&k=" frameborder="0" width="100%" height="75px" scrolling="no"></iframe><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?d=2&k=&m=cQEQbpHcDSAiySHcLQibmnbpbitfJHtbEXtppbQbHDbXpDHbitQJtWUAibSQtptLLttbtLLSnQQttcXUSpJJtinppiDpHiiDitQQ"></div></div>
python自动化工具之pywinauto(一)
10-07 阅读数 2万+
python自动化工具之pywinauto(一)python自动化工具之pywinauto一pywinauto使用一判断程序的backend二确定自动化入口点三连接到进程四选择菜单项pywinauto... 博文 来自: shawpan的专栏
<div class="recommend-item-box blog-expert-recommend-box" style="display: block;"> <div class="d-flex"> <div class="blog-expert-recommend"> <div class="blog-expert"> <div class="blog-expert-flexbox" data-report-view="{"mod":"popu_709","dest":"https://blog.csdn.net/qq_44198436/article/details/102734420"}"><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq_44198436/article/details/102734420"}"><a href="https://blog.csdn.net/weixin_40901068" target="_blank"><img src="https://profile.csdnimg.cn/0/4/B/3_weixin_40901068" username="weixin_40901068" alt="苏苏与阿言" title="苏苏与阿言"></a><span data-report-click="{"mod":"popu_710","dest":"https://blog.csdn.net/qq_44198436/article/details/102734420"}"><span class="blog-expert-button-follow btn-red-follow" data-name="weixin_40901068" data-nick="苏苏与阿言">关注</span></span></div><div class="info"><span data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq_44198436/article/details/102734420"}"><a href="https://blog.csdn.net/weixin_40901068" target="_blank"><h5 class="oneline" title="苏苏与阿言">苏苏与阿言</h5></a></span> <p></p><p class="article-num" title="11篇文章"> 11篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq_44198436/article/details/102734420"}"><a href="https://blog.csdn.net/qq_41076797" target="_blank"><img src="https://profile.csdnimg.cn/6/3/E/3_qq_41076797" username="qq_41076797" alt="CtrlZ1" title="CtrlZ1"></a><span data-report-click="{"mod":"popu_710","dest":"https://blog.csdn.net/qq_44198436/article/details/102734420"}"><span class="blog-expert-button-follow btn-red-follow" data-name="qq_41076797" data-nick="CtrlZ1">关注</span></span></div><div class="info"><span data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq_44198436/article/details/102734420"}"><a href="https://blog.csdn.net/qq_41076797" target="_blank"><h5 class="oneline" title="CtrlZ1">CtrlZ1</h5></a></span> <p></p><p class="article-num" title="183篇文章"> 183篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq_44198436/article/details/102734420"}"><a href="https://blog.csdn.net/sinat_23880167" target="_blank"><img src="https://profile.csdnimg.cn/4/3/7/3_sinat_23880167" username="sinat_23880167" alt="努力一点点坚持一点点" title="努力一点点坚持一点点"></a><span data-report-click="{"mod":"popu_710","dest":"https://blog.csdn.net/qq_44198436/article/details/102734420"}"><span class="blog-expert-button-follow btn-red-follow" data-name="sinat_23880167" data-nick="努力一点点坚持一点点">关注</span></span></div><div class="info"><span data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq_44198436/article/details/102734420"}"><a href="https://blog.csdn.net/sinat_23880167" target="_blank"><h5 class="oneline" title="努力一点点坚持一点点">努力一点点坚持一点点</h5></a></span> <p></p><p class="article-num" title="103篇文章"> 103篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq_44198436/article/details/102734420"}"><a href="https://blog.csdn.net/weixin_38741996" target="_blank"><img src="https://profile.csdnimg.cn/F/A/F/3_weixin_38741996" username="weixin_38741996" alt="weixin_38741996" title="weixin_38741996"></a><span data-report-click="{"mod":"popu_710","dest":"https://blog.csdn.net/qq_44198436/article/details/102734420"}"><span class="blog-expert-button-follow btn-red-follow" data-name="weixin_38741996" data-nick="weixin_38741996">关注</span></span></div><div class="info"><span data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq_44198436/article/details/102734420"}"><a href="https://blog.csdn.net/weixin_38741996" target="_blank"><h5 class="oneline" title="weixin_38741996">weixin_38741996</h5></a></span> <p></p><p class="article-num" title="2篇文章"> 2篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div></div> </div> </div> </div> </div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{"mod":"popu_614","dest":"https://blog.csdn.net/Philia8/article/details/102826025","strategy":"searchFromBaidu1","index":"5"}" data-report-click="{"mod":"popu_614","dest":"https://blog.csdn.net/Philia8/article/details/102826025","strategy":"searchFromBaidu1","index":"5"}" data-track-view="{"mod":"popu_614","dest":"https://blog.csdn.net/Philia8/article/details/102826025","strategy":"searchFromBaidu1","index":4,"extend1":"_"}" data-track-click="{"mod":"popu_614","dest":"https://blog.csdn.net/Philia8/article/details/102826025","strategy":"searchFromBaidu1","index":4,"extend1":"_"}" data-flg="true"> <a href="https://blog.csdn.net/Philia8/article/details/102826025" target="_blank"> <h4 class="text-truncate oneline" style="width: 884px;">操作系统实验 动态分区分配_首次适应算法(FF 算法) - P..._CSDN博客</h4> <div class="info-box d-flex align-content-center"> <p> <span class="date">11-2</span> </p> </div> </a> </div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{"mod":"popu_614","dest":"https://blog.csdn.net/qq_39241986/article/details/102855484","strategy":"searchFromBaidu1","index":"6"}" data-report-click="{"mod":"popu_614","dest":"https://blog.csdn.net/qq_39241986/article/details/102855484","strategy":"searchFromBaidu1","index":"6"}" data-track-view="{"mod":"popu_614","dest":"https://blog.csdn.net/qq_39241986/article/details/102855484","strategy":"searchFromBaidu1","index":5,"extend1":"_"}" data-track-click="{"mod":"popu_614","dest":"https://blog.csdn.net/qq_39241986/article/details/102855484","strategy":"searchFromBaidu1","index":5,"extend1":"_"}" data-flg="true"> <a href="https://blog.csdn.net/qq_39241986/article/details/102855484" target="_blank"> <h4 class="text-truncate oneline" style="width: 884px;">...LeetCode 刷题笔记首次公开 - 简说<em>Python</em>的博客 - CSDN博客...</h4> <div class="info-box d-flex align-content-center"> <p> <span class="date">11-1</span> </p> </div> </a> </div>
收集喵币的中间章节1
10-25 阅读数 101
因为感觉不够单独写成一篇博文,但又有一些函数需要抽取出来,所以就有了这个中间章节,对于这些函数如下。defwait_second(sec,im):#在某页面等待几秒,等待时会每隔三秒向上随机滑动ste... 博文 来自: 学习日常
python自动化:iframe跳转完成后,依然无法抓取到数据的问题
12-08 阅读数 1338
python自动化:iframe跳转完成后,依然无法抓取到数据的问题正在使用python进行自动化开发。今天上午【2017年12月8日】遇到一个奇怪的问题。用户使用场景是这样,点击一个按钮之后,会弹出... 博文 来自: Bierante的博客
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_61" data-pid="61"><iframe src="https://adaccount.csdn.net/#/preview/260?m=ncQpQLJHiicDyLHbbSciibQSmiJcHEXAiScEbpHDbiJAipLXQHSippnpLQnAWtpJDyAtJcLoEiLcJfvDiLHpppnALLDAQpEtJpiQ&k=" frameborder="0" width="100%" height="75px" scrolling="no"></iframe><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?d=2&k=&m=ncQpQLJHiicDyLHbbSciibQSmiJcHEXAiScEbpHDbiJAipLXQHSippnpLQnAWtpJDyAtJcLoEiLcJfvDiLHpppnALLDAQpEtJpiQ"></div></div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{"mod":"popu_614","dest":"https://blog.csdn.net/lavender_yh/article/details/102869454","strategy":"searchFromBaidu1","index":"9"}" data-report-click="{"mod":"popu_614","dest":"https://blog.csdn.net/lavender_yh/article/details/102869454","strategy":"searchFromBaidu1","index":"9"}" data-track-view="{"mod":"popu_614","dest":"https://blog.csdn.net/lavender_yh/article/details/102869454","strategy":"searchFromBaidu1","index":8,"extend1":"_"}" data-track-click="{"mod":"popu_614","dest":"https://blog.csdn.net/lavender_yh/article/details/102869454","strategy":"searchFromBaidu1","index":8,"extend1":"_"}" data-flg="true"> <a href="https://blog.csdn.net/lavender_yh/article/details/102869454" target="_blank"> <h4 class="text-truncate oneline" style="width: 884px;">#圆桌问题 - lavender_yh的博客 - CSDN博客</h4> <div class="info-box d-flex align-content-center"> <p> <span class="date">11-2</span> </p> </div> </a> </div>
python 自动化框架
02-04 阅读数 2146
python自动化框架自己从2016年11月开始下定决心学习自动化,python,现在每周进行一篇,自己的一些思路和遇到的一些问题,怎么解决的,下面是大致的一些目录框架,接下来会按照这个开始进行1、打... 博文 来自: rayman8560的博客
Python爬虫,京东自动登录,在线抢购商品
10-20 阅读数 1441
京东抢购Python爬虫,自动登录京东网站,查询商品库存,价格,显示购物车详情等。可以指定抢购商品,自动购买下单,然后手动去京东付款就行。changlog 2017-03-30实现二维码扫码登陆 ... 博文 来自: qq_45327272的博客
如何通过 Python 分析中国演员排名?
10-21 阅读数 6373
作者|AJ-Gordon责编|刘静出品|CSDN(ID:CSDNnews)项目背景上个月笔者的一个同学开了间影视投资公司,出于对创业人员的仰慕和影视投资行业的好奇,我就跟他寒暄了几句,聊天当中他提及到... 博文 来自: CSDN资讯
漫画 | 外行对程序员误会有多深!
10-11 阅读数 1万+
作者:阿波、纯洁的微笑漫画:宁州枪手程序员如今已经发展成社会的主流职业,以至于街头的王大妈李大爷都能说出一二来,据说他们认为的程序员是这样子的:程序员都是秃头,秃的越狠越...... 博文 来自: 纯洁的微笑
小白学 Python(3):基础数据类型(下)
10-22 阅读数 2619
人生苦短,我选Python引言前文传送门小白学Python(1):开篇小白学Python(2):基础数据类型(上)前面我们介绍过了数字,本篇我们接着聊另一个常用的基础数据类型:字符串。什么是字符串?字... 博文 来自: 极客挖掘机
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_62" data-pid="62"><iframe src="https://adaccount.csdn.net/#/preview/575?m=cQivHccJyHEcDAiAbnbDEiJLcStppbpALJHEitXintDLHLLnvJLbLtbbbyLviEHEQWJQnEtSioQiQQXtLAtLAbJDinicHLLStcQQ&k=" frameborder="0" width="100%" height="75px" scrolling="no"></iframe><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?d=2&k=&m=cQivHccJyHEcDAiAbnbDEiJLcStppbpALJHEitXintDLHLLnvJLbLtbbbyLviEHEQWJQnEtSioQiQQXtLAtLAbJDinicHLLStcQQ"></div></div>
ssm框架整合以及登录案例
10-19 阅读数 2623
ssm框架整合以及登录案例ssm简介百度百科SSM(Spring+SpringMVC+MyBatis)框架集由Spring、MyBatis两个开源框架整合而成(SpringMVC是Spring中的部分... 博文 来自: 刘统勋已上线的博客
python 程序员进阶之路:从新手到高手的100个模块
10-23 阅读数 2万+
在知乎和CSDN的圈子里,经常看到、听到一些python初学者说,学完基础语法后,不知道该学什么,学了也不知道怎么用,一脸的茫然。近日,CSDN的公众号推送了一篇博客,题目叫做《迷思:Python学到... 博文 来自: 牧码人
几道经典逻辑推理题,提高你的逻辑思考能力
10-20 阅读数 1万+
整理了一些逻辑推理题,这些逻辑推理题能够提高大家的逻辑思考能力,同时也能给大家的学习带来一定的趣味性。希望大家看到题之后,不要着急看答案,要先独立思考解决。答案的获取可以关注我的公众号:[Albert... 博文 来自: AlbertYang的博客
Python初学者指南,基于任务自动化Stuff
04-22 阅读数 406
《AutomatetheBoringStuffwithPython》此书讲述了如何在Python中编写基本的程序来自动化各种烦人的任务,如搜索文本、重命名一组文件、发送邮件以及更新表格和文档等。在这一... 博文 来自: Q,传
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_63" data-pid="63"><script type="text/javascript"> (function() { var s = "_" + Math.random().toString(36).slice(2); document.write('<div style="" id="' + s + '"></div>'); (window.slotbydup = window.slotbydup || []).push({ id: "u4221910", container: s }); })();
感觉自己不会的东西太多了,不知道如何下手?
10-14 阅读数 2万+
GitHub8.8kStar的Java工程师成神之路,不来了解一下吗?GitHub8.8kStar的Java工程师成神之路,真的不来了解一下吗?GitHub8.8kStar的Java工程师成神之路,真... 博文 来自: HollisChuang's Blog
Python自动化测试中的assert断言函数你知道多少?
02-24 阅读数 629
开发环境:Linux+python+tempest摘要:最近一直在做基于OpenStack测试框架tempest的自动化用例开发,在python自动化中经常会用到如何抛出指定异常,在执行测试用例时会判... 博文 来自: 光光的个人博客
面试最后一问:你有什么问题想问我吗?
10-22 阅读数 2万+
尽管,我们之前分享了这么多关于面试的主题:高薪必备的一些SpringBoot高级面试题面试必问:设计模式遵循的面向对象设计原则!面试必问:怎么保证缓存与数据库的双写一致性?27道高频Spring面试题... 博文 来自: 程序猿DD
一道经典的MySQL面试题,答案出现三次反转
10-20 阅读数 3334
这是学习笔记的第2137篇文章前几天偶然看到大家在讨论一道面试题,而且答案也不够统一,我感觉蛮有意思,在此就做一个解读,整个过程中确实会有几处反转。我们先来看下题目:一张表,里面有ID自增主键,当in... 博文 来自: 杨建荣的学习笔记
【目录】Python自动化运维
01-02 阅读数 154
【目录】Python自动化运维 目录:Python自动化运维笔记Python自动化运维-day2-数据类型Python自动化运维-day3-函数part1Python自动化运... 博文 来自: 大欣的IT之路
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_64" data-pid="64"><script type="text/javascript"> (function() { var s = "_" + Math.random().toString(36).slice(2); document.write('<div style="" id="' + s + '"></div>'); (window.slotbydup = window.slotbydup || []).push({ id: "u3600856", container: s }); })();
JAVA-快速了解线程池的基本原理
10-16 阅读数 1万+
前言说起线程池大家肯定不会陌生,在面试中属于必问的问题之一,特别是对于高并发有较高要求的企业,基本是核心打分点。网上关于线程池的文章和视频很多,本篇文章旨在帮助大家快速了解和掌握线程池的原理,对于高级... 博文 来自: 我在风花雪月里等你
“来我公司写爬虫吗?会坐牢的那种!”
10-18 阅读数 1万+
欢迎关注“技术领导力”博客,每天早上8:30推送“你交代一下,总共抓了多少数据,在哪些网站抓的,数据干什么用了?看看够在里面呆几年。。。”警察语气凝重地对张强说。程序员张强(化名),回忆起这两天来的经... 博文 来自: 技术领导力
如何优化MySQL千万级大表,我写了6000字的解读
10-21 阅读数 2万+
这是学习笔记的第2138篇文章千万级大表如何优化,这是一个很有技术含量的问题,通常我们的直觉思维都会跳转到拆分或者数据分区,在此我想做一些补充和梳理,想和大家做一些这方面的经验总结,也欢迎大家提出建议... 博文 来自: 杨建荣的学习笔记
python恶搞程序和python文件打包exe教程
10-19 阅读数 2万+
闲着无聊写了一个简易的恶搞小程序,大家看看就好,不要用来做坏事哦。使用方式:安装python环境。编写脚本。打包成exe文件。安装python环境我就不过多的介绍了,网上有很多教程,下面直奔主题。im... 博文 来自: 李小钦童鞋
python 实现小项目--银行管理系统
10-22 阅读数 2080
python实现银行管理系统有的地方方法用的比较复杂,主要是为回顾更多的知识test1用来存类和函数#test1.pyimportrandom#用来随机产生卡号importpickle #序列化,用... 博文 来自: qq_43766034的博客
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_65" data-pid="65"><script type="text/javascript"> (function() { var s = "_" + Math.random().toString(36).slice(2); document.write('<div style="" id="' + s + '"></div>'); (window.slotbydup = window.slotbydup || []).push({ id: "u4221803", container: s }); })();
python自动化脚本安装指定版本的python环境
09-02 阅读数 662
安装python环境,下载源码包,解压源码包,安装配置,编译以及编译安装python自动化安装用户指定版本的python环境python3.6.2... 博文 来自: Lockey23的博客
快速上手Ajax【一篇文章就搞懂】
10-20 阅读数 1万+
目录:1.什么是AJAX?2.快速上手2.1AJAX工作流程图2.2readyState和status3.具体用法3.1GET请求3.2.POST请求3.3选择GET还是POST?3.4同步与异步1.... 博文 来自: Poetic Code的博客
了解 MongoDB 看这一篇就够了
10-18 阅读数 9415
目录一、简介 二、基本模型 BSON数据类型 分布式ID 三、操作语法 四、索引 索引特性 索引分类 索引评估、调优 五、集群 分片机制 副本集 六、事务与一致性 一致性 小结一、简介... 博文 来自: 华为云官方博客
微服务的数据库设计
10-19 阅读数 4298
单独的数据库:微服务设计的一个关键是数据库设计,基本原则是每个服务都有自己单独的数据库,而且只有微服务本身可以访问这个数据库。它是基于下面三个原因。优化服务接口:微服务之间的接口越小越好,最好只有服务... 博文 来自: 倚天码农的博客
Python学习笔记
10-19 阅读数 7344
Python学习笔记(基础)文章目录Python学习笔记(基础)0.简介Python编程第一步模块与包错误和异常注释1.数据类型与运算符数据类型操作符2.控制流分支语句循环语句3.函数函数声名函数调用... 博文 来自: 学渣的备忘录
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_66" data-pid="66"><div id="three_ad38" class="mediav_ad"></div>
1、搜索引擎
2、PPT
3、图片操作
4、文件共享
5、应届生招聘
6、程序员面试题库
7、办公、开发软件
8、高清图片、视频素材网站
9、项目开源
10、在线工具宝典大全…
博文
鸿蒙 OS 的到来,能为我们改变什么?
09-18 阅读数 3万+
作者 | 屠敏 出品 | CSDN(ID:CSDNnews) 「鸿蒙初辟原无姓,打破顽空需悟空」,在国产自研操作系统短缺的窘境之下,天惊一声雷,「鸿蒙」踏风来。 回首上个月的技术圈,最值得业界浮... 博文
链接是指两个设备之间的连接。它包括用于一个设备能够与另一个设备通信的电缆类型和协议。
2)OSI 参考模型的层次是什么?
有 7 个 OSI 层:物理层,数据链路层,网络层,传…
博文
<div class="recommend-item-box recommend-recommend-box"><div id="_fgsoyh574kr" style="width: 100%;"><iframe width="900" frameborder="0" height="90" scrolling="no" src="https://pos.baidu.com/s?hei=90&wid=900&di=u3491668&ltu=https%3A%2F%2Fblog.csdn.net%2Fqq_44198436%2Farticle%2Fdetails%2F102734420&psi=d5f8d52df13bc24abdaed3660bcf347b&psr=1920x1080&cec=UTF-8&ltr=https%3A%2F%2Fwww.csdn.net%2Fnav%2Fpython&dai=6&cdo=-1&ccd=24&exps=111000,110011&tcn=1572769578&tpr=1572769577929&par=1920x1030&dtm=HTML_POST&cpl=20&prot=2&drs=1&col=zh-CN&tlm=1572769577&chi=1&ps=10368x600&dri=1&dis=0&cja=false&cfv=0&ti=Python%E8%87%AA%E5%8A%A8%E5%8C%96%E5%AE%8C%E6%88%90tb%E5%96%B5%E5%B8%81%E4%BB%BB%E5%8A%A1&ant=0&dc=3&pcs=1899x907&pss=1899x13195&cce=true&pis=-1x-1&ari=2&cmi=37"></iframe></div><script type="text/javascript" src="//rabc1.iteye.com/production/res/rxjg.js?pkcgstj=jm"></script></div>
德国 IT 薪酬大揭秘!
10-06 阅读数 4549
作者 |德国IT那些事责编 | 伍杏玲“所有脱离工龄、级别、职位、经验、城市以及裙带关系来谈论工资,都是耍流氓!”——佛洛依德一般来说IT行业公司,资历是按等级划分的...... 博文
帮助蹲厕族、YP族、饭圈女孩在无聊之余可以有一样东西让他们振作起来!让他们的左手 / …
博文
<div class="recommend-item-box recommend-recommend-box"><div id="_18w7wxzr5beh" style=""><abbr style="width:0px;height:0px;"></abbr><iframe width="900" frameborder="0" height="90" scrolling="no" src="https://pos.baidu.com/s?hei=90&wid=900&di=u3491668&ltu=https%3A%2F%2Fblog.csdn.net%2Fqq_44198436%2Farticle%2Fdetails%2F102734420&psi=d5f8d52df13bc24abdaed3660bcf347b&chi=1&ccd=24&cfv=0&ti=Python%E8%87%AA%E5%8A%A8%E5%8C%96%E5%AE%8C%E6%88%90tb%E5%96%B5%E5%B8%81%E4%BB%BB%E5%8A%A1&ps=10874x600&tlm=1572769577&dri=2&ant=0&drs=1&cdo=-1&dc=3&tcn=1572769578&dai=7&cmi=37&pss=1899x13291&dis=0&pis=-1x-1&col=zh-CN&psr=1920x1080&par=1920x1030&ltr=https%3A%2F%2Fwww.csdn.net%2Fnav%2Fpython&dtm=HTML_POST&prot=2&cja=false&tpr=1572769577929&exps=111000,110011&cpl=20&pcs=1899x907&ari=2&cec=UTF-8&cce=true"></iframe><em id="allzqpf" style="display:none;margin-right:0px;"></em></div><script type="text/javascript" src="//rabc1.iteye.com/production/res/rxjg.js?pkcgstj=jm"></script></div>
Python——画一棵漂亮的樱花树(不同种樱花+玫瑰+圣诞树喔)
10-22 阅读数 1万+
最近翻到一篇知乎,上面有不少用Python(大多是turtle库)绘制的树图,感觉很漂亮,我整理了一下,挑了一些我觉得不错的代码分享给大家(这些我都测试过,确实可以生成) one 樱花树
动…
博文
MySQL常用命令/用户管理/数据库备份与恢复
10-25 阅读数 7767
MySQL密码设置与更改: 设置root用户密码: [root@linux ~]# mysqladmin -uroot password "123456"
更改root用户密码:
[root@lin…
博文
用户表
订单表
订单详情表
商品表一、一对一查询
MyBatis中使用association标签来解决一对一的关联查询,association标签可用的属性如下:prope…
博文
前言
天各一方的两台计算机是如何通信的呢?在成千上万的计算机中,为什么一台计算机能够准确着寻找到另外一台计算机,并且把数据发送给它呢?
可能很多人都听说过网络通信的 5 …
博文
记者 | 胡巍巍
出品 | CSDN(ID:CSDNnews)
2019年5月15日,美国商务部将华为及其70家附属公司纳入实体清单。
当时,还有消息称,A…
博文
SSO英文全称Single SignOn,单点登录。SSO是在多个应用系统中,用户只需要登录一次就可以访问所有相互信任的应用系统。它包括可以将这次主要的登录映射到其他应用…
博文
一、对称加密
一禅:在每次发送真实数据之前,服务器先生成一把密钥,然后先把密钥传输给客户端。之后服务器给客…
博文
下载并安装Auto.js
官网网址:https://hyb1996.github.io/AutoJs-Docs
Github地址:https://github.com/hyb1996/Au…
博文
敲黑板!!!读了这篇文章,你将知道如何才能进大厂,如何实现财务自…
博文
前文传送门
小白学 Python(1):开篇
小白学 Python(2):基础数据类型(上)
小白学 Python(3):基础数据类型(下)
小白学 Python(4…
博文
引用Tkinter库
from tkinter import *建立主窗口对象
window=Tk() #设置窗…
博文
<div class="recommend-item-box type_hot_word"> <div class="content clearfix" style="width: 962px;"> <div class="float-left"> <span> <a href="https://www.csdn.net/gather_16/NtzaUgzsLWRvd25sb2Fk.html" target="_blank"> c# ef通用数据层封装</a> </span> <span> <a href="https://www.csdn.net/gather_18/NtzaUg0sLWRvd25sb2Fk.html" target="_blank"> c# queu task</a> </span> <span> <a href="https://www.csdn.net/gather_1c/NtzaUg1sLWRvd25sb2Fk.html" target="_blank"> c# timeout单位</a> </span> <span> <a href="https://www.csdn.net/gather_12/NtzaUg2sLWRvd25sb2Fk.html" target="_blank"> c#中indexof(c</a> </span> <span> <a href="https://www.csdn.net/gather_14/NtzaUg3sLWRvd25sb2Fk.html" target="_blank"> c#常量定义规则</a> </span> <span> <a href="https://www.csdn.net/gather_1b/NtzaUg4sLWRvd25sb2Fk.html" target="_blank"> c#发送按键</a> </span> <span> <a href="https://www.csdn.net/gather_2f/NtzaUg5sLWJsb2cO0O0O.html" target="_blank"> c#记住帐号密码</a> </span> <span> <a href="https://www.csdn.net/gather_12/NtzaYgwsLWRvd25sb2Fk.html" target="_blank"> c#mvc框架搭建</a> </span> <span> <a href="https://www.csdn.net/gather_10/NtzaYgysLWRvd25sb2Fk.html" target="_blank"> c#改变td值</a> </span> <span> <a href="https://www.csdn.net/gather_1e/NtzaYgzsLWRvd25sb2Fk.html" target="_blank"> c#怎么读取html文件</a> </span> </div> </div> </div> <div class="recommend-loading-box"> <img src="https://csdnimg.cn/release/phoenix/images/feedLoading.gif"> </div> <div class="recommend-end-box" style="display: block;"> <p class="text-center">没有更多推荐了,<a href="https://blog.csdn.net/" class="c-blue c-blue-hover c-blue-focus">返回首页</a></p> </div> </div> <div class="template-box"> <span>©️2019 CSDN</span><span class="point"></span> <span>皮肤主题: 深蓝海洋</span> <span> 设计师: CSDN官方博客 </span> </div> </main>
-