摘要: BOM(browser object model,用js代码控制浏览器) //浏览器窗口的高度 window.innerHeight //新开个子页面 window.open('https://www.baidu.com/','','height=500px,width=500px,top=100p 阅读全文
posted @ 2021-02-20 21:03 丑矬穷屌 阅读(30) 评论(0) 推荐(0) 编辑
摘要: import json str=['abb',456,True,False] # json_str=json.dumps(str) # with open ('test.json','w') as f: # f.write(json_str) # with open ('test.json','w' 阅读全文
posted @ 2021-02-20 01:33 丑矬穷屌 阅读(9) 评论(0) 推荐(0) 编辑
摘要: if var a=10; if (a>10){ console.log('a>10') }else if(a>5){ console.log('5<a<=10') }else {console.log('a<=5')}; if switch var num = 1 ; switch (num){ca 阅读全文
posted @ 2021-02-20 00:45 丑矬穷屌 阅读(26) 评论(0) 推荐(0) 编辑