码迷,mamicode.com
首页 >  
搜索关键字:test2 unit4    ( 855个结果
实训第八天 有关python orm 的学习记录 常用方法02
继续沿用第七天数据库:def test2(request): # 1.xxx__lt 小于 :查询出年龄小于22的所有 ret=models.Person.objects.filter(age__lt=22) print(ret) # 2.xxx__lte 小于等于 ret=models.Perso ...
分类:编程语言   时间:2020-01-01 20:30:56    阅读次数:92
promise链式调用
that.test1().then(res => { return that.test2(res);}).then(res => { console.log(res); }) test1(){ var that = this; var p = new Promise((resolve,reject) ...
分类:其他好文   时间:2019-12-30 11:10:13    阅读次数:40
鹅厂前端面试小题
鹅厂前端面试 1.有代码如下 function test2(){ return 25; }; console.log(typeof test2()) 问题:写出此时打印出的值 number 2.现有代码如下: var name='aaa'; var obj={ name:'bbb', dose:fu ...
分类:其他好文   时间:2019-12-28 20:38:13    阅读次数:124
python多线程join/setDaemon
1 import threading, time 2 3 class Test(): 4 def test1(self): 5 print("--") 6 time.sleep(3) 7 print(" ") 8 9 10 def test2(self): 11 print("==") 12 tim ...
分类:编程语言   时间:2019-12-28 09:36:36    阅读次数:92
mongodb创建超级用户和普通用户(对应数据库的用户)
1、创建管理员,下面以用户test1为例: use admin db.createUser({user: "test1", pwd: "test1", roles: [{role: "root", db: "admin"}]}) 2、创建test2db对应的test2用户: use test2db ...
分类:数据库   时间:2019-12-24 15:40:59    阅读次数:246
Yet Another Broken Keyboard
time limit per test2 secondsmemory limit per test256 megabytesinput: standard inputoutput: standard output Recently, Norge found a string s=s1s2…sn co ...
分类:其他好文   时间:2019-12-21 00:15:46    阅读次数:68
Python 协程
手动协程操作: # pip install gevent from greenlet import greenlet def test(): print('He ') gr2.switch() print('a ') gr2.switch() def test2(): print('is ') gr ...
分类:编程语言   时间:2019-12-17 14:51:21    阅读次数:100
linux下补丁制作和使用方法
两个文件的情况: 制作补丁: $ diff test1.c test2.c > test.patch 给test1.c打补丁: $ patch test1.c < test.patch 还原: $ patch -R test1.c < test.patch 两个文件夹的情况: 制作补丁: $ dif ...
分类:系统相关   时间:2019-12-14 11:53:08    阅读次数:112
python:json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes问题解决
有如下一个文件,内容如下 { "test1": "/root/test/test1.template", "test2": "/root/test/test2.template", "test3": "/root/test/test3.template", "test4": "/root/test/ ...
分类:编程语言   时间:2019-12-12 12:45:00    阅读次数:96
php mysql_connect 在同一host下多数据库mysql_select_db()的bug .
操作方法 创建两个数据库test1 test2 同一个host下面 分别在两个数据库中创建表 Table structure for test_db DROP TABLE IF EXISTS ; CREATE TABLE ( int(11) NOT NULL AUTO_INCREMENT, varc ...
分类:数据库   时间:2019-12-12 12:44:33    阅读次数:113
855条   上一页 1 ... 8 9 10 11 12 ... 86 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!