
Lv.1
只是喜欢Python而已……徒弟:程序侯
签名:只是喜欢Python而已…… 徒弟:程序侯
在 LAG每月一活动来啦!!!(设计LOGO) 中回复
https://box3create.codemao.cn/games/d320d993cbc51a36ea07 这个我正在施工代码
2020-06-05T09:15:23 点赞:0
在 【翻译】当windows翻译时…… 中回复
Microsoft Windows由Microsoft生产的用于个人计算机的Microsoft Windows系列操作系统。
2020-06-05T09:20:12 点赞:0
在 一行代码判断是否为质数 中回复
写错了,是
def isPrime(num): return not __import__("functools").reduce(__import__("operator")._or,[num % i == 0 for i in range(2,int(__import__("math").sqrt(num))+1)])2020-06-05T09:43:59 点赞:0
在 【代码岛3.0】怎么检测在线人数(用代码,不是看聊天区) 中回复
这要和我建图?
https://box3create.codemao.cn/games/d320d993cbc51a36ea07
2020-06-05T09:46:05 点赞:0
在 编辑器今日开始发放!【代码岛3.0代码编辑器更新!】JS萌新秒上手 中回复
/*我在岛3上写过代码
别人的地图上
跑酷代码*/
let playerNumbers = world.querySelectorAll("player").length
world.say(playerNumbers)
let state = []
let Rebirth_point = []
//
for(let i = 0;i < playerNumbers,i++;){
state.push(world.querySelectorAll("player")[i].position.y >= 10.5)
Rebirth_point.push([77,9,20])
}
function round(num){
return parseInt(num+0.5)
}
world.say("debuging....")
world.say("大家试试进入重生点吧")
world.say("喵?除了SGS....就啥都没有了?")
let temp = 0
let x_,y_,z_ = 0
{
setInterval(
()=>{
//TODEBUG
temp = 0
world.querySelectorAll('player').forEach((x) => {
//if(x.player.name != "SGS_一只_chara"){world.say("正在检测"+x.player.name+"的状态")}
//world.say(x.player.name+"的x:"+x_+"的y:"+y_+"的z:"+z_)
world.say(x.player.name+"的重生点是"+Rebirth_point+Rebirth_point[temp][0]+"&"+Rebirth_point[temp][1]+"&"+Rebirth_point[temp][2])
temp++
world.say(temp+"")
world.say(world.querySelectorAll("player").length)
x_ = round(x.position.x)
y_ = round(x.position.y)
z_ = round(x.position.z)
if (y <= 10.5 && state[temp]) {x.position.set(Rebirth_point[temp][0],Rebirth_point[temp][1],Rebirth_point[temp][2]);
world.say(x.player.name+"被传送回出生点")
}
if (x_ == 118&&y_ == 36&&z_ == 65){
world.say(x.player.name,+"进入第一重生点")
Rebirth_point[temp] = [118,36,65] //这么做
}
else if (x_ == 98&&y_ == 42&&z_ == 113){
world.say(x.player.name+"进入第二重生点")
Rebirth_point[temp] = [98,42,113] //这么做
}
});
},1000
)
};2020-06-05T09:50:00 点赞:0
在 【编程小课堂】中心点 中回复
print("11"+__import__("opreator").mul("1",__import__("random").choice([2 for _ in range(1000)])))2020-06-05T10:01:19 点赞:0