eval:eval() 函数用来执行一个字符串表达式,并返回表达式的原始值。 例如:有个字符串 A="{'value': 'hello'}" 想要输出该字符串的value值,应该怎么办。 如果仅仅是一个字典的话直接取dict['key']就可以轻松取出来,但是在字符串中我们就必须想办法把字符串转化成 ...
分类:
其他好文 时间:
2020-05-04 00:40:38
阅读次数:
153
导入maven依赖 org.aspectj aspectjweaver 1.9.4 org.springframework spring aop 5.0.0.RELEASE compile 编写service接口 public interface UserService { void add(); ...
分类:
编程语言 时间:
2020-05-04 00:21:52
阅读次数:
72
找到Maven的安装目录,在安装目录下找到conf->settings.xml,在该文件中找到<mirrors></mirrors>标签,在该标签内添加阿里云镜像: <mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>N ...
分类:
其他好文 时间:
2020-05-03 21:39:54
阅读次数:
91
一、简介 PHP的配置项可以在配置文件php.ini中配置,也可以在脚本中使用ini_set()函数临时配置。 二、常用配置项 1、错误信息相关配置 1)display_errors 设定PHP是否将任何错误信息包含在返回给Web服务器的数据流中。(PHP将任何由error_reporting所定义 ...
分类:
Web程序 时间:
2020-05-03 10:50:25
阅读次数:
75
import re # 月亮与六便士共7313词 # 傲慢与偏见加上面这本书共这么多词10781 s="I'm a father." with open("EnglishNovels/pride.txt", "r", encoding='utf8') as f: pattern=re.compile ...
分类:
编程语言 时间:
2020-05-02 19:03:37
阅读次数:
115
这里提供手动搭建vue单页面开发生产环境,并使用node写后台代码,仅供小白参考;代码虽然没多少,但牵扯的知识很多,需要逐个研究; 后续内容《手动搭建vue+node单页面(二)》https://segmentfault.com/a/11... 项目地址:https://github.com/liu ...
分类:
其他好文 时间:
2020-05-01 16:53:49
阅读次数:
37
It is possible to pass some values from the command line to your C programs when they are executed. These values are called command line arguments and ...
分类:
其他好文 时间:
2020-05-01 10:45:42
阅读次数:
72
maven周期 maven的生命周期不止package,compile,clean。其实这是主要部分。 以下截图其实展示的是maven的所有周期。 maven的生命周期,主要分为3套(其实每个生命周期下面都分为一些阶段,如上截图所示): 1、clean周期:负责清理项目(清理上一次编译的文件)。 2 ...
分类:
其他好文 时间:
2020-04-30 23:29:43
阅读次数:
60
1. 基本使用: 输出 #re #pattern = re.compile() #生成pattern对象#pattern.match #pattern.search#pattern.find str1 = "itest python" pa = re.compile(r"itest")#加r代表是原 ...
分类:
编程语言 时间:
2020-04-30 21:14:33
阅读次数:
71
一、简介 集群中Cluster Singleton 集群中有而只一个单例,可应用于集群全局调控,单一运算决策,中央命名服务或中央路由等应用场景 二、依赖 dependencies { compile group: 'com.typesafe.akka', name: 'akka-cluster-ty ...
分类:
其他好文 时间:
2020-04-30 13:52:51
阅读次数:
73