首先呢~ 我们要在需要创建模块的路径例如AAA目录下,在终端打开(就是和在shell窗口打开一样的) 然后 ng g ng-alain:module XXXmodule 好了,创建了一个模块 接下来会提示你 CREATE src/app/routes/AAA/XXXmodule-routing.mo ...
分类:
其他好文 时间:
2020-04-28 00:26:53
阅读次数:
391
# dict1 = {}# import json,re# res = re.findall('\n(.*?)\n',str1)# for i in res:# aaa = i.split(':')# print(aaa)# if len(aaa) ==2 :# dict1[aaa[0].strip ...
分类:
编程语言 时间:
2020-04-27 22:59:15
阅读次数:
121
1.标题 号来表示 a aaa 2.换行 末尾两个空格或者`` aaa bbb ccc ddd 3.引用 表示 也可以在引用中 使用嵌套的引用 4.列表 无序列表 或者 或者 表示 a b + a + b a b 有序列表以数字和 表示 1. a 2. b 5.代码 通过 是Tab键上边那个按键) ...
分类:
其他好文 时间:
2020-04-27 19:31:46
阅读次数:
280
匿名函数 var abc = function(){console.log(‘aaa’)} abc() 先定义在使用; // 自执行函数 // !function(){ // console.log("自执行函数");}() // (function(){ // console.log("");}) ...
分类:
其他好文 时间:
2020-04-26 17:17:41
阅读次数:
115
varhyphenateRE=/\B([A-Z])/g;varhyphenate=function(str){returnstr.replace(hyphenateRE,‘-$1‘).toLowerCase()}console.log(hyphenate("aaaaDssssFcccc"));//aaaa-dssss-fcccc//"-$1":捕获到什么字符$1就引用什么字符,
分类:
其他好文 时间:
2020-04-26 09:19:36
阅读次数:
110
1510. 亲密字符串 中文English 给定两个由小写字母构成的字符串A 和B,只要我们可以通过交换A中的两个字母得到与B相等的结果,就返回true;否则返回false。 样例 Example 1: Input: A = "ab", B = "ba" Output: true Example 2 ...
分类:
其他好文 时间:
2020-04-25 19:41:18
阅读次数:
72
使用到了.NET中的资源文件,也就是Resources.resx,于是就学会了如何调用资源文件中的资源。首先,资源文件可以从项目属性中的资源标签添加。比如,我添加一个图片,叫做aaa.png,添加入资源文件后,可以给他命名,比如叫它aaa。如此,添加文件就完成了。然后,在程序中调用,只需要一句话:P ...
``` fn test = ( return true ) fn run = ( if try (test()) catch(true) == false then print "aaa1" else print "bbb1" --需要用变量接收才能得到正确判定? res = try (test()... ...
分类:
其他好文 时间:
2020-04-23 21:30:07
阅读次数:
52
类变量就是供类使用的变量,实例变量就是供实例使用的. 1 class Person: 2 name="aaa" 3 4 p1=Person() 5 p2=Person() 6 p1.name="bbb" 7 print p1.name # bbb 8 print p2.name # aaa 9 pr ...
分类:
其他好文 时间:
2020-04-21 18:04:36
阅读次数:
53
用户认证 token ( 前后端分离 ) cookie & session (前后端不分离) aaa 继承 BaseAuthentication 类,并重写authenticate方法 三种操作: 1. 抛出异常,后续不执行 from rest_framework.execptions import ...
分类:
其他好文 时间:
2020-04-21 15:19:55
阅读次数:
80