摘要: 我的目的是通过appium 爬取微信的朋友圈 首先将USB与电脑相连了,并且通过cmd 查看了连接状况 上图显示已经通过USB相连 并且通过CMD查看了设备的appPackage及 appActivity. 上图中第一个红色框内的为appPackage 名,第二个红色框内的为appActivity名 阅读全文
posted @ 2019-11-21 21:08 看星星的派大星 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 首先打开appium server并运行,然后将手机与电脑相连,然后在python中写代码,但是代码需要出入appium参数,这些参数怎么查询呢? 1、创建appium参数 { "platformName":"Android" "platformVersion":"5.5" "deviceName" 阅读全文
posted @ 2019-11-15 07:40 看星星的派大星 阅读(384) 评论(0) 推荐(0) 编辑
摘要: p 是q 的充分条件,但不是必要条件(下图) 即由p可以推出q. p是q的必要条件,但不是充分条件。(见下图) 即由q可以推出p。 可以结合离散数学的 p >q, 那么 来理解。(这是同一行meoji)。 阅读全文
posted @ 2019-11-09 07:50 看星星的派大星 阅读(1924) 评论(0) 推荐(0) 编辑
摘要: # crawl a image import urllib.request response = urllib.request.urlopen("http://placekitten.com/200/300") #load html with open("C:/Users/Mike1/Desktop 阅读全文
posted @ 2019-11-03 09:56 看星星的派大星 阅读(179) 评论(0) 推荐(0) 编辑
摘要: import numpy as np import matplotlib.pyplot as plt import time import math import collections raw_data_x = [[3.39,2.33], [3.11,1.78], [1.34,3.36], [3.58,4.67], [2.28,2.86], [7.442,4.69], [5.74,3.53], 阅读全文
posted @ 2019-10-30 10:02 看星星的派大星 阅读(652) 评论(0) 推荐(0) 编辑
摘要: 有时 z = x + y 有时 0 = x + y 有时单独用f(x) 有时 z = f(x) 很容易分不清。 从集合角度,将f(x)看成映射 即从A集合到B集合的对应关系 这样f(x)可以单独使用,也可以 z = f(x) 但是B集合能不能是多元的还不知道,只见过一元的,但是A集合可以使多元的。 阅读全文
posted @ 2019-10-19 00:48 看星星的派大星 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 机器学习的常用指标 precision : 在预测为正的样本中,预测正确的样本占所有预测为正的样本的比例 recall : 在预测为正样本中预测为正的样本,占所用真正的正样本的比例 accuracy : 预测正确的样本(预测正确的正样本及预测正确的负样本)占总样本的比例 T:true F: fals 阅读全文
posted @ 2019-09-29 15:37 看星星的派大星 阅读(102) 评论(0) 推荐(0) 编辑
摘要: sorry about having no annotation for every code if we run the programme in one IDLE, we will have error such as ConnectionRefusedError: [WinError 1006 阅读全文
posted @ 2019-09-28 00:05 看星星的派大星 阅读(292) 评论(0) 推荐(0) 编辑
摘要: the result we also creat a file in the window 阅读全文
posted @ 2019-09-25 09:29 看星星的派大星 阅读(198) 评论(0) 推荐(0) 编辑
摘要: the function sub_info is the function which is added based on the last experiment programme the result is we also change the print result what we need 阅读全文
posted @ 2019-09-24 23:55 看星星的派大星 阅读(190) 评论(0) 推荐(0) 编辑