Lv.1
在 谁还要建筑师(创作节的) 中回复
https://box3.codemao.cn/e/4d207d03788e5af05f55?p=tk1soIgY%2F%2FuMaGXG268UjavfRnyDvak喵0P47lrUZDA%2BLF1VroLwVndWVzdA%3D%3D
2022-01-23T17:05:55 点赞:0
在 找工作室动态图 中回复
qywx.techuangyi.com/guide#/generate?industry_id=164&title=inksans%E5%B7%A5%E4%BD%9C%E5%AE%A4&slogan=%E5%8A%A0%E8%BD%BDink%E4%B8%AD&letter_id=12
2022-06-08T15:08:58 点赞:0
在 随手写的代码 中回复
https://baike.baidu.com/item/%E5%90%AC%E4%BA%91/15277949 听云是编程猫使用的技术
2022-08-13T17:10:29 点赞:0
在 怎么办怎么办怎么办怎么办!!! 中回复
<!doctype html>
<head>
<meta charset="utf-8">
<title>你个**a</title>
</head>
<body>
<script type="text/javascript">
function Car(name,power,max){
this.name=name;
this.power=power;
this.max=max;
this.e_power=100;
this.oil_power=5;
this.powerin=powerin;
}
function powerin(){
if(this.power=='e'){
document.write(`充满电需要${this.e_power*this.max}小时`)
}
else{
document.write(`加满油需要${this.oil_power*this.max}小时`)
}
}
var fld=new Car('法拉利','e',9);
fld.powerin();
console.log('okook')
//document.write(fld.max);
</script>
</body>2022-08-16T16:55:08 点赞:0
在 【不懂就问】为什么? 中回复
我试了一下,把"= {a: 1}"去掉就行了
var obj = {a:0}
obj.b = obj
console.log(obj) // {a: 0, b: {{a: 0, b: {{a: 0, b: {{a: 0, b: {...}}}}}}}}
console.log(obj.a) //1
console.log(obj.b) // {a: 0, b: {{a: 0, b: {{a: 0, b: {{a: 0, b: {...}}}}}}}}
不知道是为什么
2022-08-17T15:44:20 点赞:0
在 【不懂就问】为什么? 中回复
用python复刻:
class Obj(object): # 创建一个可更改属性值的对象
pass
temp = Obj() # temp: {}
temp.a = 2 # temp: {'a': 2}
obj = Obj() # obj: {}
obj.a = 1 # obj: {'a': 1}
obj.b = obj = temp # obj: {'a': 2} 这句语句的执行顺序:obj.b = obj obj = temp
print(vars(obj)) # {'a': 2} 在python中,vars(xxx)可获得xxx的属性和值的字典2022-08-17T16:43:52 点赞:0
在 【Python作品分享】登录软件源代码【作品秀】 中回复
# 压缩为一行
# 如果是xxx and yyy的话,如果xxx是False就不会检测yyy了,所以得写all((xxx, yyy))
print('登录成功' if all((input() == 'ken', input() == '20101125')) else '账号或密码错误')2022-08-19T19:51:52 点赞:0
在 【图主们小心了!】关于地图权限 中回复
我找到了挂,但是此挂的此功能没有任何危险性。所有的更改仅限都是本地的,刷新之后就没了,且所有原来没有仅限的功能都无法正常使用
2022-08-19T19:56:10 点赞:0