在出现了这个问题之后先不要盲目的去瞎试,根据网上的方法试了个遍也没解决问题 先看报的是什么错,再针对的解决问题 首先出现的报错是 SyntaxError: Unexpected token '*' 在打包后的dist文件里搜了下连乘 ** 果然有,说明没有转编译成功 这个错误的出现是由于 ios10 ...
分类:
移动开发 时间:
2019-09-04 18:50:39
阅读次数:
548
golang变成使用IDE,注意IDE的默认换行符号 我使用的是PHPstrome IED工具,注意右下角这个默认换行符。不然,总是提示错误 expected ";",found "import"。换成\r\n 就好了 ...
分类:
其他好文 时间:
2019-09-04 13:35:50
阅读次数:
347
[TFS 2010][TFS 2012] 解决 - TF255329: The Following site could not be accessed: http://vsalm2012.no-ip.org/. The Server that you specified did not retur... ...
分类:
数据库 时间:
2019-09-04 11:52:40
阅读次数:
125
题目传送门 题意:小明每晚都玩游戏,每一盘赢的概率都是p,如果第一盘就赢了,那么就去睡觉;否则继续玩,玩到赢的比例大于p才去睡;如果一直玩了n盘还没完成,就第二天再玩,并且游戏记录清空;问他玩游戏天数的期望; 思路:由于每次玩游戏,每天玩游戏都是独立重复试验,所以可以考虑一天玩游戏,玩不到p的概率( ...
分类:
其他好文 时间:
2019-09-03 13:22:26
阅读次数:
69
from selenium import webdriverfrom selenium.webdriver.support.wait import WebDriverWaitfrom selenium.webdriver.support import expected_conditions as E... ...
分类:
其他好文 时间:
2019-09-01 22:04:23
阅读次数:
89
expected_conditions模块提供了判断页面元素的16种方法 1、title_is: 判断当前页面的title是否完全等于(==)预期字符串,返回布尔值2、title_contains : 判断当前页面的title是否包含预期字符串,返回布尔值3、presence_of_element_ ...
分类:
其他好文 时间:
2019-08-30 19:14:54
阅读次数:
71
Given a dice with n sides, you have to find the expected number of times you have to throw that dice to see all its faces at least once. Assume that t ...
分类:
其他好文 时间:
2019-08-28 00:58:33
阅读次数:
82
cf 1174 D "Ehab and the Expected XOR Problem" 题意 在1~$2^n$范围内找到一个最长的序列,使得该序列的每一个子串异或后不等于0和x 题解 假设该序列为a,那么前缀异或和b[i] = a[i]^a[i 1]^...^a[0],如果b之间异或都不会等于0 ...
分类:
其他好文 时间:
2019-08-25 01:16:55
阅读次数:
107
package com.course.testng.suite; import org.testng.annotations.Test; public class ExpectedExeption { /* 什么时候回应道异常测试????? 在我们期望结果为某一个异常的时候 比如:我们传入不合法的参... ...
分类:
其他好文 时间:
2019-08-24 18:32:57
阅读次数:
76
注意文件响应处理方式,是响应为网页形式还是附件显示,看如下信息: In a regular HTTP response, the Content-Disposition response header is a header indicating if the content is expected ...
分类:
编程语言 时间:
2019-08-23 10:38:23
阅读次数:
94