沒用過這個工具
考慮下,獲取到這個節(jié)點后,能否靠位置猜測是1 2 3的行 4 5 6的行 7 8 9的行
然后根據(jù)位置傳入TouchEvent ,直接傳入LinearLayout節(jié)點中 三等分 然后取中點分別作為1 2 3?
只是一個思路 沒用過這種自動化工具
你確定你那個冒號不是中文冒號!
不會,首先要了解java語言的數(shù)據(jù)結(jié)構(gòu),其次要了解json的數(shù)據(jù)格式
可以看一下json數(shù)據(jù)格式:http://www.jb51.net/article/1...
vendor中文翻譯為廠商(第三方), webpack 中通常用vendor來命名我們項目中使用的第三方庫(俗稱三方庫)
為提升性能,應減少 pandas.DataFrame.apply() 的逐行操作,在本例中可改用 numpy.where() 二元操作符,如下
In [1]: import pandas as pd
In [2]: import numpy as np
In [3]: df1 = pd.DataFrame({'t': [1,2,3], 'user_id': [10,20,30], 'v': [1.1,2.2,3.3]})
In [4]: df1
Out[4]:
t user_id v
0 1 10 1.1
1 2 20 2.2
2 3 30 3.3
In [5]: df2 = pd.DataFrame({'t': [4,1,2], 'user_id': [40,10,20], 'v': [400,100,200]})
In [6]: df2
Out[6]:
t user_id v
0 4 40 400
1 1 10 100
2 2 20 200
In [7]: df3 = pd.merge(df1, df2, how='right', on=['t', 'user_id'])
In [8]: df3
Out[8]:
t user_id v_x v_y
0 1 10 1.1 100
1 2 20 2.2 200
2 4 40 NaN 400
In [9]: df3['v'] = np.where(np.isnan(df3.v_x), df3.v_y, df3.v_x)
In [10]: df3
Out[10]:
t user_id v_x v_y v
0 1 10 1.1 100 1.1
1 2 20 2.2 200 2.2
2 4 40 NaN 400 400.0
In [11]: del df3['v_x']
In [12]: del df3['v_y']
In [13]: df3
Out[13]:
t user_id v
0 1 10 1.1
1 2 20 2.2
2 4 40 400.0
那要看是什么 timeout
了,是嘗試連接時的還是 連接上了讀數(shù)據(jù)的時候。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<canvas></canvas>
<script>
window.onload = function () {
const canvas = document.getElementsByTagName('canvas')[0]
const ctx = canvas.getContext("2d");
const w = document.documentElement.clientWidth;
const h = document.documentElement.clientHeight;
canvas.width = w;
canvas.height = h;
let mols = []
function init() {
let mol = new generate_mol(1)
mols.push(mol);
}
function draw(){
canvas.width = canvas.width;
for(var i=0;i<mols.length;i++){
var m = mols[i];
m.draw();
}
}
function generate_mol(mol) {
this.x = w*0.3;
this.y = h*0.3;
// this.vx = Math.random()*-2;
// this.vy = Math.random()*2;
// this.vr = 0.1;
this.r = Math.random()*Math.PI;
this.draw = function() {
// ctx.save();
// ctx.translate(this.x + 20, this.y + 80);
// ctx.rotate(Math.PI * 0.17);
// ctx.translate(-this.x + 20, -this.y - 80);
// ctx.beginPath();
// ctx.moveTo(this.x, this.y + 30);
// ctx.lineTo(this.x - 26, this.y + 45);
// ctx.lineTo(this.x - 26, this.y + 75);
// ctx.lineTo(this.x, this.y + 90);
// ctx.lineTo(this.x + 26, this.y + 75);
// ctx.lineTo(this.x + 26, this.y + 45);
// ctx.lineTo(this.x, this.y + 30);
// ctx.moveTo(this.x - 20, this.y + 47);
// ctx.strokeStyle = "rgba(0,0,0,0.2)";
// ctx.lineWidth = 3;
// ctx.stroke();
// ctx.closePath();
// ctx.restore()
ctx.fillStyle = "rgba(0,0,0,0.5)";
ctx.font = "15px Arial";
ctx.fillText("A", this.x+40 , this.y+80);
ctx.save();
ctx.translate(this.x + 20, this.y + 30);
ctx.rotate(Math.PI * 0.17);
ctx.translate(-this.x + 20, -this.y - 80);
ctx.beginPath();
ctx.moveTo(this.x, this.y + 30);
ctx.lineTo(this.x - 26, this.y + 45);
ctx.lineTo(this.x - 26, this.y + 75);
ctx.lineTo(this.x, this.y + 90);
ctx.lineTo(this.x + 26, this.y + 75);
ctx.lineTo(this.x + 26, this.y + 45);
ctx.lineTo(this.x, this.y + 30);
ctx.moveTo(this.x - 20, this.y + 47);
ctx.strokeStyle = "rgba(0,0,0,0.2)";
ctx.lineWidth = 3;
ctx.stroke();
ctx.fillStyle = "rgba(0,0,0,0.5)";
ctx.font = "15px Arial";
ctx.fillText("B", this.x , this.y+70);
ctx.closePath();
ctx.restore()
ctx.save();
ctx.translate(this.x + 68, this.y + 56);
ctx.rotate(Math.PI * 0.17);
ctx.translate(-this.x + 20, -this.y - 80);
ctx.beginPath();
ctx.moveTo(this.x, this.y + 30);
ctx.lineTo(this.x - 26, this.y + 45);
ctx.lineTo(this.x - 26, this.y + 75);
ctx.lineTo(this.x, this.y + 90);
ctx.lineTo(this.x + 26, this.y + 75);
ctx.lineTo(this.x + 26, this.y + 45);
ctx.lineTo(this.x, this.y + 30);
ctx.moveTo(this.x - 20, this.y + 47);
ctx.strokeStyle = "rgba(0,0,0,0.2)";
ctx.lineWidth = 3;
ctx.stroke();
ctx.closePath();
ctx.restore()
ctx.save();
ctx.translate(this.x + 66, this.y + 110);
ctx.rotate(Math.PI * 0.17);
ctx.translate(-this.x + 20, -this.y - 80);
ctx.beginPath();
ctx.moveTo(this.x, this.y + 30);
ctx.lineTo(this.x - 26, this.y + 45);
ctx.lineTo(this.x - 26, this.y + 75);
ctx.lineTo(this.x, this.y + 90);
ctx.lineTo(this.x + 26, this.y + 75);
ctx.lineTo(this.x + 26, this.y + 45);
ctx.lineTo(this.x, this.y + 30);
ctx.moveTo(this.x - 20, this.y + 47);
ctx.strokeStyle = "rgba(0,0,0,0.2)";
ctx.lineWidth = 3;
ctx.stroke();
ctx.closePath();
ctx.restore()
ctx.save();
ctx.translate(this.x + 20, this.y + 135);
ctx.rotate(Math.PI * 0.17);
ctx.translate(-this.x + 20, -this.y - 80);
ctx.beginPath();
ctx.moveTo(this.x, this.y + 30);
ctx.lineTo(this.x - 26, this.y + 45);
ctx.lineTo(this.x - 26, this.y + 75);
ctx.lineTo(this.x, this.y + 90);
ctx.lineTo(this.x + 26, this.y + 75);
ctx.lineTo(this.x + 26, this.y + 45);
ctx.lineTo(this.x, this.y + 30);
ctx.moveTo(this.x - 20, this.y + 47);
ctx.strokeStyle = "rgba(0,0,0,0.2)";
ctx.lineWidth = 3;
ctx.stroke();
ctx.closePath();
ctx.restore()
//
ctx.save();
ctx.translate(this.x -27,this.y + 108);
ctx.rotate(Math.PI * 0.17);
ctx.translate(-this.x + 20, -this.y - 80);
ctx.beginPath();
ctx.moveTo(this.x, this.y + 30);
ctx.lineTo(this.x - 26, this.y + 45);
ctx.lineTo(this.x - 26, this.y + 75);
ctx.lineTo(this.x, this.y + 90);
ctx.lineTo(this.x + 26, this.y + 75);
ctx.lineTo(this.x + 26, this.y + 45);
ctx.lineTo(this.x, this.y + 30);
ctx.moveTo(this.x - 20, this.y + 47);
ctx.strokeStyle = "rgba(0,0,0,0.2)";
ctx.lineWidth = 3;
ctx.stroke();
ctx.closePath();
ctx.restore()
ctx.save();
ctx.translate(this.x -26, this.y + 56);
ctx.rotate(Math.PI * 0.17);
ctx.translate(-this.x + 20, -this.y - 80);
ctx.beginPath();
ctx.moveTo(this.x, this.y + 30);
ctx.lineTo(this.x - 26, this.y + 45);
ctx.lineTo(this.x - 26, this.y + 75);
ctx.lineTo(this.x, this.y + 90);
ctx.lineTo(this.x + 26, this.y + 75);
ctx.lineTo(this.x + 26, this.y + 45);
ctx.lineTo(this.x, this.y + 30);
ctx.moveTo(this.x - 20, this.y + 47);
ctx.strokeStyle = "rgba(0,0,0,0.2)";
ctx.lineWidth = 3;
ctx.stroke();
ctx.closePath();
ctx.restore()
}
}
init()
draw()
}
</script>
</body>
</html>
沒畫好 畫偏了
應該還要加算法 來生成指定個數(shù)的
預覽地址
已經(jīng)解決 其實不是這個意思 沒說明白
https://developers.weixin.qq....
15.3.2不得安裝或運行其他可執(zhí)行代碼的程序。
政策和技術(shù)上應該都是不能實現(xiàn)的
不要直接拼接字符串,如果你的內(nèi)容包括以下符號 ' -- [ ] 等 ,可能會報錯,
例如本來你想查詢 select * from table where name = '${var1}';
, 如果你的變量var1 是 Mr.W'O
,那么拼接后你的語句就變成了 select * from table where name = 'Mr.W'O';
語句中出現(xiàn)了三個 ' 當然會報語法錯誤。 報錯還是小事情,被黑客利用而進行sql注入就麻煩了。
建議你用node的模塊mysql或mysql2 對變量進行編碼,可能你的寫法就變成了這樣
var sql = `insert into article_list
(title,author,summary,is_top,catalog_alias,content)
values
(?,?,?,?,?,?)`;
let result = mysql.query(sql, [req.body.title, req.body.author,req.body.summary,req.body.is_top])
"<·
"是你輸入的命令return
的內(nèi)容,定義一個變量是不會有return
信息的
比如,你在控制臺中依次執(zhí)行以下兩條命令:
const a = () => 1 // 只是定義了a函數(shù),并沒有return信息,所以是undefined
a() // 執(zhí)行了a函數(shù),這條命令return了1,所以會打印出一個1
https://segmentfault.com/q/10...
可以參考這個問題
fileset里增加
<include>**/*.json</include>
或者把<include>src/main/resources/*/*</include>
改成
<include>**/*</include>
change 名字換另外一個名字,試一下
Click Element //a[text()='${text}']
這樣就可以了,之前以為這個xpath定位對偽元素不生效,后來發(fā)現(xiàn)是寫錯了標簽,之前寫的標簽是li,其實應該用a,文字在哪一層標簽下面,就用哪一層的標簽。
只能用 flex 布局
祝你三分鐘學會 flex 布局 https://www.jmjc.tech/tutoria...
var that = this
window.requestAnimationFrame(function() {that.tick();})
試一下這個
你的電腦是什么系統(tǒng),win7還是8還是10
1.設置Y
軸的axisLine/splitline/axisTick
為隱藏
2.設置series
的label
顯示,position
設為right
源代碼,記得在4.0
以上版本運行,低版本請自行修改配置
app.title = '世界人口總量 - 條形圖';
option = {
title: {
text: '世界人口總量',
subtext: '數(shù)據(jù)來自網(wǎng)絡'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
legend: {
data: ['2012年']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: {
type: 'value',
boundaryGap: [0, 0.01],
splitLine: {
show: false
}
},
yAxis: {
type: 'category',
data: ['巴西', '印尼', '美國', '印度', '中國', '世界人口(萬)'],
axisLine: {
show: false
},
splitLine: {
show: false
},
axisTick: {
show: false
},
},
series: [
{
name: '2012年',
type: 'bar',
label: {
show: true,
position: 'right'
},
data: [19325, 23438, 31000, 121594, 134141, 681807]
}
]
};
北大青鳥APTECH成立于1999年。依托北京大學優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
北大青鳥中博軟件學院創(chuàng)立于2003年,作為華東區(qū)著名互聯(lián)網(wǎng)學院和江蘇省首批服務外包人才培訓基地,中博成功培育了近30000名軟件工程師走向高薪崗位,合作企業(yè)超4
中公教育集團創(chuàng)建于1999年,經(jīng)過二十年潛心發(fā)展,已由一家北大畢業(yè)生自主創(chuàng)業(yè)的信息技術(shù)與教育服務機構(gòu),發(fā)展為教育服務業(yè)的綜合性企業(yè)集團,成為集合面授教學培訓、網(wǎng)
達內(nèi)教育集團成立于2002年,是一家由留學海歸創(chuàng)辦的高端職業(yè)教育培訓機構(gòu),是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
曾工作于聯(lián)想擔任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔任項目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍懿科技有限責任公司從事總經(jīng)理職務負責iOS教學及管理工作。
浪潮集團項目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗,技術(shù)功底深厚。 授課風格 授課風格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應用開發(fā)經(jīng)驗。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。