上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 68 下一页
摘要: class Solution(object): def divide(self, dividend, divisor): """ :type dividend: int :type divisor: int :rtype: int """ ispositive = True ... 阅读全文
posted @ 2019-03-14 17:54 anobscureretreat 阅读(403) 评论(0) 推荐(0)
摘要: 可以看到每一个发布都需要大约3s,所以在发布前要等待3s以上。 发布 订阅: 阅读全文
posted @ 2019-03-14 17:03 anobscureretreat 阅读(2767) 评论(0) 推荐(0)
摘要: print()函数,我们可以看出,在Python IDLE中直接输入的字符串都是有类型的,而print打印后的字符串相当于一串文字,把字符串的引号也省略了,没有类型 print()函数,生成可读性更好的输出, 它会省去引号并打印 str()函数,用于将值转化为适于人阅读的字符串的形式 repr()函 阅读全文
posted @ 2019-03-14 13:21 anobscureretreat 阅读(394) 评论(0) 推荐(0)
摘要: abs(number) ,返回数字的绝对值cmath.sqrt(number) ,返回平方根,也可以应用于负数float(object) ,把字符串和数字转换为浮点数help() ,提供交互式帮助input(prompt) ,获取用户输入int(object) ,把字符串和数字转换为整数math.c 阅读全文
posted @ 2019-03-14 11:49 anobscureretreat 阅读(205) 评论(0) 推荐(0)
摘要: 报错信息: 如图为adb所在路径: 编辑uiautomatorviewer.bat文件,修改最后一行, 修改前: 修改后: 注意: 将%prog_dir%替换为adb的路径。 再次启动 阅读全文
posted @ 2019-03-14 10:30 anobscureretreat 阅读(671) 评论(0) 推荐(0)
摘要: #coding=utf-8 import sys from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QWidget, QApplication from PyQt5.QtGui import QPixmap, QPainter, QBitmap, QCursor import PyQt5.QtCore as QtCore cl... 阅读全文
posted @ 2019-03-14 01:35 anobscureretreat 阅读(745) 评论(0) 推荐(0)
摘要: 需要修改的是 参考: https://www.jianshu.com/p/cb5bced7e540 https://www.cnblogs.com/good-time/p/7678206.html https://blog.csdn.net/u012681539/article/details/79 阅读全文
posted @ 2019-03-14 01:15 anobscureretreat 阅读(329) 评论(0) 推荐(0)
摘要: 有多种安装Python-Client的方法: 第一种 第二种 第三种 这里我们使用pip 阅读全文
posted @ 2019-03-14 00:40 anobscureretreat 阅读(3427) 评论(0) 推荐(0)
摘要: 下载地址: 选择版本 双击安装 阅读全文
posted @ 2019-03-14 00:28 anobscureretreat 阅读(2345) 评论(0) 推荐(0)
摘要: # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def removeNthFromEnd(self,... 阅读全文
posted @ 2019-03-13 18:36 anobscureretreat 阅读(186) 评论(0) 推荐(0)
摘要: class Solution(object): def fourSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[List[int]] """ l = len... 阅读全文
posted @ 2019-03-13 18:32 anobscureretreat 阅读(154) 评论(0) 推荐(0)
摘要: class Solution(object): def letterCombinations(self, digits): """ :type digits: str :rtype: List[str] """ if digits == "": return []... 阅读全文
posted @ 2019-03-13 18:24 anobscureretreat 阅读(171) 评论(0) 推荐(0)
摘要: client: server: 参考: https://www.cnblogs.com/suguangti/p/10814737.html https://www.cnblogs.com/huihui0708/p/8594817.html 阅读全文
posted @ 2019-03-13 17:59 anobscureretreat 阅读(221) 评论(0) 推荐(0)
摘要: 进度条 阅读全文
posted @ 2019-03-13 16:44 anobscureretreat 阅读(1087) 评论(0) 推荐(0)
摘要: server client 阅读全文
posted @ 2019-03-13 16:28 anobscureretreat 阅读(277) 评论(0) 推荐(0)
摘要: 发布者 订阅者: 阅读全文
posted @ 2019-03-13 15:53 anobscureretreat 阅读(186) 评论(0) 推荐(0)
摘要: 安装nodejs java 环境变量配置: 安装 Android sdk tools: 安装sdk Appium-desktop的下载&安装 Appium Client的下载&安装 修改如下配置,运行桌面版的appium 启动成功后 连接手机 1.手机用数据线连电脑,如果安装了91助手或者360什么 阅读全文
posted @ 2019-03-13 00:49 anobscureretreat 阅读(198) 评论(0) 推荐(0)
摘要: 下载地址: https://nodejs.org/en/download/ 双击安装 安装完成 打开cmd 阅读全文
posted @ 2019-03-13 00:45 anobscureretreat 阅读(162) 评论(0) 推荐(0)
摘要: 下载地址: 选择sdk 选择版本 将解压出的整个文件夹复制或者移动到 your sdk 路径/platforms文件夹,然后打开SDK Manager,打开 Tools(工具)菜单选择Options(选项)菜单项打开Android SDK Manager Setting对话框,点击 Clear Ca 阅读全文
posted @ 2019-03-12 23:49 anobscureretreat 阅读(308) 评论(0) 推荐(0)
摘要: 安装java: 下载地址:https://www.androiddevtools.cn/ 选择版本 双击安装即可 设置环境变量 一.新建环境变量名字 环境变量的值 如图: 二.在path中增加三个路径 如图: 三.重新打开cmd窗口 输入 阅读全文
posted @ 2019-03-12 23:41 anobscureretreat 阅读(4877) 评论(0) 推荐(0)
摘要: 冒烟测试(smoke testing),就是开发人员在个人版本的软件上执行目前的冒烟测试项目,确定新的程序代码不出故障。冒烟测试的对象是每一个新编译的需要正式测试的软件版本,目的是确认软件基本功能正常,可以进行后续的正式测试工作。冒烟测试的执行者是版本编译人员。 回归测试是软件测试的一种,旨在检验软 阅读全文
posted @ 2019-03-12 21:58 anobscureretreat 阅读(690) 评论(0) 推荐(0)
摘要: # -*- coding: UTF-8 -*- import gevent from gevent import socket from gevent import event rev=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) rev.bind(('',53)) ip=[] cur=0 def preload(): f... 阅读全文
posted @ 2019-03-12 17:45 anobscureretreat 阅读(362) 评论(0) 推荐(0)
摘要: from win32com import client import time import random from lxml import etree dirver = client.DispatchEx("InternetExplorer.Application") dirver.Navigate('http://sbj.saic.gov.cn/sbcx/') dirver.Visibl... 阅读全文
posted @ 2019-03-12 17:42 anobscureretreat 阅读(2482) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python #coding=utf-8 import rospy from std_msgs.msg import String i=0 def talker(): global i pub = rospy.Publisher('bp_nav_goal',String, queue_size=10) rospy.init_node('... 阅读全文
posted @ 2019-03-12 17:36 anobscureretreat 阅读(459) 评论(0) 推荐(0)
摘要: Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the thr 阅读全文
posted @ 2019-03-12 16:57 anobscureretreat 阅读(128) 评论(0) 推荐(0)
摘要: class Solution(object): def threeSum(self, nums): res = [] nums.sort() for i in xrange(len(nums)-2): if i > 0 and nums[i] == nums[i-1]: conti... 阅读全文
posted @ 2019-03-12 16:52 anobscureretreat 阅读(286) 评论(0) 推荐(0)
摘要: clone 是本地没有 repository 时,将远程 repository 整个下载过来。 pull 是本地有 repository 时,将远程 repository 里新的 commit 数据(如有的话)下载过来,并且与本地代码merge。 note:git pull相当于git fetch和 阅读全文
posted @ 2019-03-12 11:57 anobscureretreat 阅读(2784) 评论(0) 推荐(0)
摘要: note:All given inputs are in lowercase letters a-z. 阅读全文
posted @ 2019-03-12 10:29 anobscureretreat 阅读(148) 评论(0) 推荐(0)
摘要: #include <ege.h> const float base_speed = 0.5f; const float randspeed = 1.5f; //自定义函数,用来返回一个0 - m之间的浮点数 float myrand(float m) { return (float)(ege::ra 阅读全文
posted @ 2019-03-11 00:30 anobscureretreat 阅读(345) 评论(0) 推荐(0)
摘要: vs2017: 下载 https://pan.baidu.com/s/1qWxAgeK 里面的 “ege19.01_vs2017 (推荐, 修正win10 1809 上无法正常运行的问题).zip” 按如下操作: (更高版本vs也是同理, 附 网友教程) 默认安装的情况下, 把 include目录 阅读全文
posted @ 2019-03-10 23:34 anobscureretreat 阅读(358) 评论(0) 推荐(0)
摘要: #include "stdafx.h" #include #include #include using namespace std; int main() { cout << "boost 版本:" << BOOST_VERSION << endl; cout << "boost lib 版本:" << BOOST_LIB_VERSION << endl; ... 阅读全文
posted @ 2019-03-10 23:11 anobscureretreat 阅读(512) 评论(0) 推荐(0)
摘要: class Solution(object): def romanToInt(self, s): """ :type s: str :rtype: int """ lista={'I':1,'V':5,'X':10,'L':50,'C':100,'D':500,'M':1000} Valu... 阅读全文
posted @ 2019-03-10 19:50 anobscureretreat 阅读(169) 评论(0) 推荐(0)
摘要: class Solution(object): def intToRoman(self, num): """ :type num: int :rtype: str """ if num == 0: return "" if num >= 1000: ... 阅读全文
posted @ 2019-03-10 19:40 anobscureretreat 阅读(243) 评论(0) 推荐(0)
摘要: def solution(num): if(0<num<=5): if(num<4): return (num)*"I" else: return (5-num)*"I"+"V" elif(5<num<=10): return "V"+(num-5)*"I" elif(10... 阅读全文
posted @ 2019-03-10 19:36 anobscureretreat 阅读(134) 评论(0) 推荐(0)
摘要: class Solution(object): def isPalindrome(self, x): """ :type x: int :rtype: bool """ s=str(x) if(s==s[::-1]): return True els... 阅读全文
posted @ 2019-03-10 18:07 anobscureretreat 阅读(103) 评论(0) 推荐(0)
摘要: def solution(s): s=s.strip() if(s): l=len(s) first_n=-1 b_n=-1 last_n=-1 f_n=-1 for i in range(l): if(s[i].isdigit()): ... 阅读全文
posted @ 2019-03-09 23:01 anobscureretreat 阅读(162) 评论(0) 推荐(0)
摘要: def get_f_l(s_length,s,list_all,last_d): max_l=0 first_d=0 last_d=0 for i in range(len(list_all)): if((i+1)==len(list_all)): break for j in range(i+1,len... 阅读全文
posted @ 2019-03-07 23:49 anobscureretreat 阅读(204) 评论(0) 推荐(0)
摘要: class Solution(object): def get_f_l(self,s_length,s,list_all,last_d): max_l=0 first_d=0 last_d=0 for i in range(len(list_all)): if((i+1)==len(list_al... 阅读全文
posted @ 2019-03-07 23:48 anobscureretreat 阅读(105) 评论(0) 推荐(0)
摘要: list_all=[] oper_s="abcdaaaa" i_num=0 while(True): x=oper_s.find("a",i_num) print(x) if(not x==-1): i_num=x+1 list_all.append(x) else: break print(list_... 阅读全文
posted @ 2019-03-07 23:04 anobscureretreat 阅读(652) 评论(0) 推荐(0)
摘要: class Solution(object): def reverse(self, x): """ :type x: int :rtype: int """ p=abs(x) rev=int(str(p)[::-1]) if(x(pow(2,31)-1)): ... 阅读全文
posted @ 2019-03-07 13:37 anobscureretreat 阅读(196) 评论(0) 推荐(0)
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 68 下一页