用户管路命令 用户管理命令useradd 切换用户su 用户名 1.useradd 2.passwd 3.who 4.w ...
分类:
其他好文 时间:
2020-04-03 21:34:41
阅读次数:
65
运行系统尝试添加用户并添加数据,出现的效果 可以看到当前登录的用户虽然是DOCTOR,但依然可以看到其他用户的文章,而且过滤器上也展示了非当前用户创建的分类,显然这是一个需要我们解决的问题. 首先解决右侧过滤器的功能,这时需要自定义过滤器,这里贴上文档中的说明 接下来我们就来编写自定义过滤器的代码: ...
分类:
其他好文 时间:
2020-04-01 16:20:18
阅读次数:
97
参考链接: https://blog.csdn.net/Stream_who/article/details/95757844 ...
分类:
其他好文 时间:
2020-04-01 14:36:15
阅读次数:
64
lineinfile模块可以确保某一行文本存在于指定的文件中,或者确保从文件中删除指定的文本,还可以根据正则表达式替换某一行文本。下面罗列一下lineinfile模块的参数: path:必须参数,指定要操作的文件 line:用来指定文本内容 regexp:使用正则表达式匹配对应的行,当替换文本时,如 ...
分类:
其他好文 时间:
2020-03-31 17:19:18
阅读次数:
94
Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but ...
分类:
其他好文 时间:
2020-03-31 01:24:28
阅读次数:
79
一.类的静态属性 即是将类的函数属性,封装成类似数据属性。比如:类方法函数的返回值获取。通过:@proporty class Who(object): what = 'what' # brother = 'jack' def __init__(self,name,age,gender): self. ...
分类:
其他好文 时间:
2020-03-30 09:17:33
阅读次数:
76
一.类的组成 class Who(object): what = 'what' def __init__(self,name,age,gender): self.name = name self.age = age self.gender =gender def information(self): ...
分类:
其他好文 时间:
2020-03-30 00:12:38
阅读次数:
66
主要是学习clinic的使用,使用的官方demo 环境准备 安装 npm install -g clinic 命令 clinic --help ? Clinic - v5.0.0 ? Getting started As a first step, run the clinic doctor: ? ...
分类:
其他好文 时间:
2020-03-29 10:32:19
阅读次数:
188
https://www.youtube.com/watch?v=H yTZFi _eY You solar system is a ticking time bomb Generations were born, live, and die, not knowing that the sun wil ...
分类:
其他好文 时间:
2020-03-29 01:44:58
阅读次数:
85