- Python开发游戏?也太好用了吧
七步编程
工具Githubpythonpython游戏开发语言
程序员宝藏库:https://gitee.com/sharetech_lee/CS-Books-Store当然可以啦!现在日常能够用到和想到的场景,绝大多数都可以用Python实现。效果怎么样暂且不提,但是得益于丰富的第三方工具包,的确让Python能够很容易处理各种各样的场景。对于游戏开发也是这样,如果真的要想商业化,Python在游戏开发方面肯定没办法和C++相提并论,但是如果用于日常学习和自
- 利用Python3爬取下载bookset网站的kindle电子书
nobodyyang
突然间发现这个网站,可以下载很多kindle电子书。观摩了下,和前段时间刚写的爬取头条有点类似。 该网站链接首页:https://bookset.me/,这次爬取排行榜链接:https://bookset.me/?rating=douban,打开观察发现排行榜其实真正分页规则是https://bookset.me/page/num?rating=douban,其中num代表页数。具体代码如下
- 一些机器学习不错的书籍
jimmyleeee
机器学习人工智能
最近,在学习一些机器学习的相关知识,在Github上居然找到了一个可以下载一些不错的介绍机器学习和大数据挖掘和分析的书籍。具体的书籍的信息可以参考一下链接:Books/DataSciencefromScratch.pdfatmaster·varunkashyapks/Books·GitHub
- linux查看jupyter运行,在Linux服务器上运行Jupyter notebook server教程
天启大烁哥
在Linux服务器上运行Jupyternotebookserver教程很多deeplearning教程都推荐在jupyternotebook运行python代码,方便及时交互。但只在本地运行没有GPU环境,虽然googlecolab是个好办法,但发现保存模型后在云端找不到模型文件,且需要合理上网才能访问。于是想给实验室的服务器配置jupyternotebook,供本机远程访问。踩了不少坑,码一下教
- Gitbook 本地安装教程
simple哇
书籍gitbook
Gitbook本地安装教程安装node[nodejs的v10.21.0版本,下载地址:https://nodejs.org/dist/v10.21.0/node-v10.21.0-x64.msi]其他版本有问题npmnpminstall-ggitbook-cligitbookinit[初始化目录结构]gitbookbuild[编译]gitbookserve[运行]插件在根目录新建book.json
- 数据分析师之打杂入门--运营学习
爱数据爱分析
接上篇数据分析师之打杂入门--数据技能学习(网址:https://www.jianshu.com/writer#/notebooks/41435296/notes/58416752)在经历了辛苦的业务学习、数据学习后,很多分析师们以为可以羽扇纶巾、指点江山、激扬数据、提出策略、指导业务发展了。然而现实是:1、今天拉个数据,明天换个统计口径再拉数据。2、本周开发个报表,下周叠加字段继续开发报表,加班
- 第五天Vue学习
余心不忍
vue.js学习elementui
v-for的相关使用1.v-for的基本使用循环遍历,值,索引值,key都可以一般需要使用索引值。{{index+":"+item}}index表示索引,item表示当前遍历的元素。{{item}}{{key+'----'+i}}varapp=newVue({el:'#app',data:{books:['化学','物理','英语','数学','语文'],person:{name:'张三',age
- python可以嵌在vba中吗_Jupyter Notebooks嵌入Excel并使用Python替代VBA宏
简内特
python可以嵌在vba中吗
以前,Excel和PythonJupyterNotebook之间我们只能选择一个。但是现在随着PyXLL-Jupyter软件包的推出,可以将两者一起使用。在本文中,我将向你展示如何设置在Excel中运行的JupyterNotebook。在这两者之间共享数据,甚至可以从Excel工作簿调用Jupyter笔记本中编写的Python函数!开始首先,要在Excel中运行Python代码,你需要使用PyXL
- ABAP OLE导出Excel
a86632678
ABAPsapabap
INCLUDE程序代码如下:TYPE-POOLS:soi,ole2.DATA:lo_applicationTYPEole2_object,lo_workbookTYPEole2_object,lo_workbooksTYPEole2_object,lo_rangeTYPEole2_object,lo_worksheetTYPEole2_object,lo_worksheetsTYPEole2_ob
- 现在,您可以在Instagram上预订并购买电影票
qq_42364914
Instagram正在为希望使用其个人资料向客户发送消息并促进交易的企业推出新功能。即使你不是Instagram上的商家,你仍然会注意到添加了动作按钮,这些按钮可以让你预约,购买门票,开始订单或使用第三方服务进行预订,所有这些都来自Instagram业务简介。最初的整合包括(深呼吸)Acuity,AtomTickets,Booksy,ChowNow,Eatstreet,Eventbrite,Fan
- mysql字符串函数使用方式
m0_46429209
mysql学习mysql
1.concat()可以将多列内容连接在一起或给某列数据追加内容eg:selectconcat(column1,’-’,column2)AScolfromtable_name将column1和column2的内容用'-'连接2.IFNULL();指定遇到NULL时,改为显示其他内容eg:selectIFNULL(book_name,'')frombooks;3.lower()和upper()low
- 1200bookshop(2)
fun麦兜
周三因为志坚没那么快回去,我下班去书店待了一会。这是第二次进这家书店,又有一些新的发现。原来楼梯中间那道门后面竟然还有一间屋子。早上看到以为只是普普通通一扇门而已。在里面转了一圈,我便出去了。这些都是餐饮消费了才能坐的。我坐这看了一会书,就有服务员来提醒我了。再上去,我看到了沙发客的那个小房间。也是早上没有发现的。这家书店真是设计巧妙,好像有很多密道机关一样,让人每次都有新发现。中间的大长桌是免费
- golang教程推荐
kdbshi
golanggit开发语言后端
推荐几个Go语言教程:Go语言圣经:https://books.studygolang.com/gopl-zh/Go语言高级编程:https://chai2010.cn/advanced-go-programming-book/GoWeb编程:http://go-web-programming-cn.github.io/Go入门指南:https://tour.golang.org/welcome/
- jupyter python 3 教程_windows python3安装Jupyter Notebooks教程
勃欣然
jupyterpython3教程
JupyterNotebooks是什么?JupyterNotebooks是一款开源的网络应用,我们可以将其用于创建和共享代码与文档。其提供了一个环境,你无需离开这个环境,就可以在其中编写你的代码、运行代码、查看输出、可视化数据并查看结果。因此,这是一款可执行端到端的数据科学工作流程的便捷工具,其中包括数据清理、统计建模、构建和训练机器学习模型、可视化数据等等,因为它们比单纯的IDE平台更具交互性,
- ansible自动化运维项目
iangyu
运维
在自动化运维中,Ansible是一种强大的工具,它通过无代理的方式来管理配置、部署应用程序和编排复杂任务。一个典型的Ansible自动化运维项目可以包括配置管理、应用部署、补丁更新、系统监控、备份恢复等。以下是如何构建和组织一个Ansible自动化运维项目的详细指南。一、项目结构设计一个良好的Ansible项目结构有助于组织Playbooks、角色和其他配置文件。以下是一个典型的Ansible项目
- Lambda终结操作count
Leon_Jinhai_Sun
Lambda
count可以用来获取当前流中元素的个数。例子:打印这些作家的所出书籍的数目,注意删除重复元素。//打印这些作家的所出书籍的数目,注意删除重复元素。Listauthors=getAuthors();longcount=authors.stream().flatMap(author->author.getBooks().stream()).distinct().count();System.out.
- Ansible自动化运维实战:打造高效、可靠的系统管理方案!
疾风终究没有归途
运维自动化运维配置管理应用部署
Ansible是一个在自动化运维领域广泛使用的工具,它基于Python开发,能够实现批量系统配置、程序部署和运行命令等功能。以下将详细解析Ansible自动化运维项目的构建与应用:项目结构设计ansible.cfg:这是Ansible的主配置文件。inventory:定义要管理的主机,通常按组分类,如生产和测试环境。playbooks:包含site.yml、webservers.yml、dbser
- 详细解说:ansible自动化运维项目
AI逍遥子
运维
Ansible是一种强大的自动化运维工具,主要用于配置管理、应用部署、任务执行等场景。它基于Python开发,通过SSH协议进行通信,无需在目标主机上安装客户端或守护进程,使得部署和管理变得更加简单和安全。Ansible的特点简单易用:Ansible使用YAML格式的Playbooks描述配置和操作,语法简洁,易于理解和维护。模块化:提供了丰富的模块,如file、apt、yum、systemd等,
- 在线图书管理系统”的Vue.js项目
hai40587
vue.js前端javascript
项目概述假设我们正在构建一个名为“在线图书管理系统”的Vue.js项目。该系统允许用户浏览图书列表、搜索图书、查看图书详情、添加新书到购物车以及进行用户认证(登录、注册)。我们将使用Vue.js2.x(或Vue3.x,视你偏好而定),结合VueRouter进行页面路由管理,Vuex进行状态管理,以及Axios进行HTTP请求。项目结构/online-bookstore/src/assets-log
- scrapy学习笔记0827
github_czy
scrapy学习笔记
1.总之先启动先安装scrapy,pipinstallscrapy创建scrapy项目,生成的项目结构应该如图所示,scrapystartprojectexample选择需要爬取的页面并分析,这里选定的页面是Allproducts|BookstoScrape-Sandbox一个供给爬虫学者练手的网站,我们需要爬取上面的书籍信息,解析我们需要的内容在那一段html标签里可以使用浏览器自带的开发者工具
- 开源项目精选:Bookshop Demo - 您的云端书店解决方案
毛彤影
开源项目精选:BookshopDemo-您的云端书店解决方案tidb-prisma-vercel-demoVirtualonlinebookstoreapplicationdemowhichyoucanfindbooksofvariouscategoriesandratethebooks.项目地址:https://gitcode.com/gh_mirrors/ti/tidb-prisma-verc
- vue3什么场景使用computed?如何使用
fury_123
javascripthtml5vue.js
使用computed的原因:基础示例:模板中的表达式虽然方便,但也只能用来做简单的操作。如果在模板中写太多逻辑,会让模板变得臃肿,难以维护。比如说,我们有这样一个包含嵌套数组的对象:jsconstauthor=reactive({name:'JohnDoe',books:['Vue2-AdvancedGuide','Vue3-BasicGuide','Vue4-TheMystery']})我们想
- MFC 读写 Excel
m0_37346206
excel
在对话框头文件中导入头文件#include"CApplication.h"#include"CRange.h"#include"CWorkbook.h"#include"CWorkbooks.h"#include"CWorksheet.h"#include"CWorksheets.h"#include"ShowData.h"依次打开并注释这些头文件中如下代码//#import"C:\\Progra
- 行动是治愈一切的良药,别想太多,行动起来
一朵康卫忠
2021年【早起计划】第129天It'shardtogetupatsixIt'sdifficulttoreadbookseverydayIt'shardtokeepcalmButtherearealwayspeoplewhocangetupatfiveReadabookpatientlyYouwannaknowthetips?Don'tthinktoomuchJustactActrightnow六
- 英语启蒙:绘本精读+手工游戏-Things I Like
绮爸学英语
看绘本,听歌曲,玩手工,轻松快乐英语启蒙!大家好,我是绮爸。欢迎来到绮爸学英语!今天我们来看看超级绘本大师安东尼布朗的幼儿情绪启蒙三部曲的最后一本--ThingsILike.这三本绘本画的都是孩子们日常熟悉的事物:Howdoyoufeel画的是孩子们的喜怒哀乐;Ilikebooks画的是孩子们看的各种各样的书;今天这本ThingsILike就更是孩子们平时都喜欢做的一些事情,比如玩玩具,画画,骑脚
- django的模型成员
_琳哥
类的属性objects:是Manager类型的对象,用于与数据库进行交互当定义模型类时没有指定管理器,则Django会为模型类提供一个名为objects的管理器支持明确指定模型类的管理器classBookInfo(models.Model):...books=models.Manager()当为模型类指定管理器后,django不再为模型类生成名为objects的默认管理器管理器Manager管理器
- 【主流开发语言和开发环境介绍】
程序员不想YY啊
开发语言
主流开发语言和开发环境介绍1.介绍2.开发语言3.开发环境1.介绍下面是一些广泛使用的主流开发语言及其相关的开发环境。2.开发语言Python用途:通用编程、科学计算、数据分析、机器学习、Web开发等。流行库:NumPy,Pandas,TensorFlow,PyTorch,Flask,Django。开发环境:PyCharm,VisualStudioCode,JupyterNotebooks。Jav
- Zoho Books | 線上會計軟體釋放可能性
Zohopartner
sass云计算
ZohoFinance應用程式包括ZohoBooks、ZohoBilling、ZohoExpense、ZohoInventory以及ZohoInvoice。根據企業的形態和規模的不同,從記帳、開票、進銷存管理,ZohoFinance基本上概括了企業所需的財務軟體。ZohoBooks為企業提供了一個全面的財務管理解決方案。它的獨特之處在於其易用性和靈活性,尤其是在開票(Invoice)方面。靈活且方
- 用Python实现批量创建Excel文件
程序员贵哥
Python自动化办公PythonPython编程教学pythonpycharm青少年编程后端程序人生经验分享笔记
小编简单写了一个批量创建Excel文件的实例实例代码:importxlwingsasxwapp=xw.App(visible=True,add_book=False)foriin["技术部","销售部","财务部","运营部"]:w=app.books.add()w.save(f"./部门业绩---{i}.xlsx")这段Python代码使用了xlwings库来操作Excel。xlwings是一个
- Java,SpringBoot中对Stream流的运用
春来我不先开口,哪个虫儿敢作声?
有关Java项目的参考文章javaspringboot开发语言
详细参考:java1.8stream应用-22种案例_java1.8流案例-CSDN博客准备条件publicclassBooksimplementsSerializable{privatestaticfinallongserialVersionUID=1L;/***图书记录ID,自增*/privateIntegerbookId;/***图书号*/privateStringbookCode;/***
- 集合框架
天子之骄
java数据结构集合框架
集合框架
集合框架可以理解为一个容器,该容器主要指映射(map)、集合(set)、数组(array)和列表(list)等抽象数据结构。
从本质上来说,Java集合框架的主要组成是用来操作对象的接口。不同接口描述不同的数据类型。
简单介绍:
Collection接口是最基本的接口,它定义了List和Set,List又定义了LinkLi
- Table Driven(表驱动)方法实例
bijian1013
javaenumTable Driven表驱动
实例一:
/**
* 驾驶人年龄段
* 保险行业,会对驾驶人的年龄做年龄段的区分判断
* 驾驶人年龄段:01-[18,25);02-[25,30);03-[30-35);04-[35,40);05-[40,45);06-[45,50);07-[50-55);08-[55,+∞)
*/
public class AgePeriodTest {
//if...el
- Jquery 总结
cuishikuan
javajqueryAjaxWebjquery方法
1.$.trim方法用于移除字符串头部和尾部多余的空格。如:$.trim(' Hello ') // Hello2.$.contains方法返回一个布尔值,表示某个DOM元素(第二个参数)是否为另一个DOM元素(第一个参数)的下级元素。如:$.contains(document.documentElement, document.body); 3.$
- 面向对象概念的提出
麦田的设计者
java面向对象面向过程
面向对象中,一切都是由对象展开的,组织代码,封装数据。
在台湾面向对象被翻译为了面向物件编程,这充分说明了,这种编程强调实体。
下面就结合编程语言的发展史,聊一聊面向过程和面向对象。
c语言由贝尔实
- linux网口绑定
被触发
linux
刚在一台IBM Xserver服务器上装了RedHat Linux Enterprise AS 4,为了提高网络的可靠性配置双网卡绑定。
一、环境描述
我的RedHat Linux Enterprise AS 4安装双口的Intel千兆网卡,通过ifconfig -a命令看到eth0和eth1两张网卡。
二、双网卡绑定步骤:
2.1 修改/etc/sysconfig/network
- XML基础语法
肆无忌惮_
xml
一、什么是XML?
XML全称是Extensible Markup Language,可扩展标记语言。很类似HTML。XML的目的是传输数据而非显示数据。XML的标签没有被预定义,你需要自行定义标签。XML被设计为具有自我描述性。是W3C的推荐标准。
二、为什么学习XML?
用来解决程序间数据传输的格式问题
做配置文件
充当小型数据库
三、XML与HTM
- 为网页添加自己喜欢的字体
知了ing
字体 秒表 css
@font-face {
font-family: miaobiao;//定义字体名字
font-style: normal;
font-weight: 400;
src: url('font/DS-DIGI-e.eot');//字体文件
}
使用:
<label style="font-size:18px;font-famil
- redis范围查询应用-查找IP所在城市
矮蛋蛋
redis
原文地址:
http://www.tuicool.com/articles/BrURbqV
需求
根据IP找到对应的城市
原来的解决方案
oracle表(ip_country):
查询IP对应的城市:
1.把a.b.c.d这样格式的IP转为一个数字,例如为把210.21.224.34转为3524648994
2. select city from ip_
- 输入两个整数, 计算百分比
alleni123
java
public static String getPercent(int x, int total){
double result=(x*1.0)/(total*1.0);
System.out.println(result);
DecimalFormat df1=new DecimalFormat("0.0000%");
- 百合——————>怎么学习计算机语言
百合不是茶
java 移动开发
对于一个从没有接触过计算机语言的人来说,一上来就学面向对象,就算是心里上面接受的了,灵魂我觉得也应该是跟不上的,学不好是很正常的现象,计算机语言老师讲的再多,你在课堂上面跟着老师听的再多,我觉得你应该还是学不会的,最主要的原因是你根本没有想过该怎么来学习计算机编程语言,记得大一的时候金山网络公司在湖大招聘我们学校一个才来大学几天的被金山网络录取,一个刚到大学的就能够去和
- linux下tomcat开机自启动
bijian1013
tomcat
方法一:
修改Tomcat/bin/startup.sh 为:
export JAVA_HOME=/home/java1.6.0_27
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
export PATH=$JAVA_HOME/bin:$PATH
export CATALINA_H
- spring aop实例
bijian1013
javaspringAOP
1.AdviceMethods.java
package com.bijian.study.spring.aop.schema;
public class AdviceMethods {
public void preGreeting() {
System.out.println("--how are you!--");
}
}
2.beans.x
- [Gson八]GsonBuilder序列化和反序列化选项enableComplexMapKeySerialization
bit1129
serialization
enableComplexMapKeySerialization配置项的含义
Gson在序列化Map时,默认情况下,是调用Key的toString方法得到它的JSON字符串的Key,对于简单类型和字符串类型,这没有问题,但是对于复杂数据对象,如果对象没有覆写toString方法,那么默认的toString方法将得到这个对象的Hash地址。
GsonBuilder用于
- 【Spark九十一】Spark Streaming整合Kafka一些值得关注的问题
bit1129
Stream
包括Spark Streaming在内的实时计算数据可靠性指的是三种级别:
1. At most once,数据最多只能接受一次,有可能接收不到
2. At least once, 数据至少接受一次,有可能重复接收
3. Exactly once 数据保证被处理并且只被处理一次,
具体的多读几遍http://spark.apache.org/docs/lates
- shell脚本批量检测端口是否被占用脚本
ronin47
#!/bin/bash
cat ports |while read line
do#nc -z -w 10 $line
nc -z -w 2 $line 58422>/dev/null2>&1if[ $?-eq 0]then
echo $line:ok
else
echo $line:fail
fi
done
这里的ports 既可以是文件
- java-2.设计包含min函数的栈
bylijinnan
java
具体思路参见:http://zhedahht.blog.163.com/blog/static/25411174200712895228171/
import java.util.ArrayList;
import java.util.List;
public class MinStack {
//maybe we can use origin array rathe
- Netty源码学习-ChannelHandler
bylijinnan
javanetty
一般来说,“有状态”的ChannelHandler不应该是“共享”的,“无状态”的ChannelHandler则可“共享”
例如ObjectEncoder是“共享”的, 但 ObjectDecoder 不是
因为每一次调用decode方法时,可能数据未接收完全(incomplete),
它与上一次decode时接收到的数据“累计”起来才有可能是完整的数据,是“有状态”的
p
- java生成随机数
cngolon
java
方法一:
/**
* 生成随机数
* @author
[email protected]
* @return
*/
public synchronized static String getChargeSequenceNum(String pre){
StringBuffer sequenceNum = new StringBuffer();
Date dateTime = new D
- POI读写海量数据
ctrain
海量数据
import java.io.FileOutputStream;
import java.io.OutputStream;
import org.apache.poi.xssf.streaming.SXSSFRow;
import org.apache.poi.xssf.streaming.SXSSFSheet;
import org.apache.poi.xssf.streaming
- mysql 日期格式化date_format详细使用
daizj
mysqldate_format日期格式转换日期格式化
日期转换函数的详细使用说明
DATE_FORMAT(date,format) Formats the date value according to the format string. The following specifiers may be used in the format string. The&n
- 一个程序员分享8年的开发经验
dcj3sjt126com
程序员
在中国有很多人都认为IT行为是吃青春饭的,如果过了30岁就很难有机会再发展下去!其实现实并不是这样子的,在下从事.NET及JAVA方面的开发的也有8年的时间了,在这里在下想凭借自己的亲身经历,与大家一起探讨一下。
明确入行的目的
很多人干IT这一行都冲着“收入高”这一点的,因为只要学会一点HTML, DIV+CSS,要做一个页面开发人员并不是一件难事,而且做一个页面开发人员更容
- android欢迎界面淡入淡出效果
dcj3sjt126com
android
很多Android应用一开始都会有一个欢迎界面,淡入淡出效果也是用得非常多的,下面来实现一下。
主要代码如下:
package com.myaibang.activity;
import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.os.CountDown
- linux 复习笔记之常见压缩命令
eksliang
tar解压linux系统常见压缩命令linux压缩命令tar压缩
转载请出自出处:http://eksliang.iteye.com/blog/2109693
linux中常见压缩文件的拓展名
*.gz gzip程序压缩的文件
*.bz2 bzip程序压缩的文件
*.tar tar程序打包的数据,没有经过压缩
*.tar.gz tar程序打包后,并经过gzip程序压缩
*.tar.bz2 tar程序打包后,并经过bzip程序压缩
*.zi
- Android 应用程序发送shell命令
gqdy365
android
项目中需要直接在APP中通过发送shell指令来控制lcd灯,其实按理说应该是方案公司在调好lcd灯驱动之后直接通过service送接口上来给APP,APP调用就可以控制了,这是正规流程,但我们项目的方案商用的mtk方案,方案公司又没人会改,只调好了驱动,让应用程序自己实现灯的控制,这不蛋疼嘛!!!!
发就发吧!
一、关于shell指令:
我们知道,shell指令是Linux里面带的
- java 无损读取文本文件
hw1287789687
读取文件无损读取读取文本文件charset
java 如何无损读取文本文件呢?
以下是有损的
@Deprecated
public static String getFullContent(File file, String charset) {
BufferedReader reader = null;
if (!file.exists()) {
System.out.println("getFull
- Firebase 相关文章索引
justjavac
firebase
Awesome Firebase
最近谷歌收购Firebase的新闻又将Firebase拉入了人们的视野,于是我做了这个 github 项目。
Firebase 是一个数据同步的云服务,不同于 Dropbox 的「文件」,Firebase 同步的是「数据」,服务对象是网站开发者,帮助他们开发具有「实时」(Real-Time)特性的应用。
开发者只需引用一个 API 库文件就可以使用标准 RE
- C++学习重点
lx.asymmetric
C++笔记
1.c++面向对象的三个特性:封装性,继承性以及多态性。
2.标识符的命名规则:由字母和下划线开头,同时由字母、数字或下划线组成;不能与系统关键字重名。
3.c++语言常量包括整型常量、浮点型常量、布尔常量、字符型常量和字符串性常量。
4.运算符按其功能开以分为六类:算术运算符、位运算符、关系运算符、逻辑运算符、赋值运算符和条件运算符。
&n
- java bean和xml相互转换
q821424508
javabeanxmlxml和bean转换java bean和xml转换
这几天在做微信公众号
做的过程中想找个java bean转xml的工具,找了几个用着不知道是配置不好还是怎么回事,都会有一些问题,
然后脑子一热谢了一个javabean和xml的转换的工具里,自己用着还行,虽然有一些约束吧 ,
还是贴出来记录一下
顺便你提一下下,这个转换工具支持属性为集合、数组和非基本属性的对象。
packag
- C 语言初级 位运算
1140566087
位运算c
第十章 位运算 1、位运算对象只能是整形或字符型数据,在VC6.0中int型数据占4个字节 2、位运算符: 运算符 作用 ~ 按位求反 << 左移 >> 右移 & 按位与 ^ 按位异或 | 按位或 他们的优先级从高到低; 3、位运算符的运算功能: a、按位取反: ~01001101 = 101
- 14点睛Spring4.1-脚本编程
wiselyman
spring4
14.1 Scripting脚本编程
脚本语言和java这类静态的语言的主要区别是:脚本语言无需编译,源码直接可运行;
如果我们经常需要修改的某些代码,每一次我们至少要进行编译,打包,重新部署的操作,步骤相当麻烦;
如果我们的应用不允许重启,这在现实的情况中也是很常见的;
在spring中使用脚本编程给上述的应用场景提供了解决方案,即动态加载bean;
spring支持脚本