SpringBoot读取 Resource下文件
SpringBoot 项目在打包成jar文件后运行在服务器上后是无法读取到 jar 文件中的内容的,读取只能通过类加载器读取方法一ClassPathResource classPathResource = new ClassPathResource("templates/index.html");
InputStream inputStream = classPathRe...
PHP使用键值对格式化字符串
Python基于字典的字符串格式化如下:person = {'name':'bruce', 'number':'56778'}
print("%(name)'s phone number is %(number)" % person)使用PHP实现类似功能:function spri...
pyinstaller教程
简介PyInstaller可以用来打包python应用程序,打包完的程序就可以在没有安装Python解释器的机器上运行了。PyInstaller支持Python 2.7和Python 3.3+。可以在Windows、Mac OS X和Linux上使用,但是并不是跨平台的,而是说你要是希望打包成.exe文件,需要在Windows系统上运行PyInstaller进行打包工作;打包成mac app...