一种是网上常见的一种 var builder1 = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile("appsettings.json"); var configuration = ...
分类:
Web程序 时间:
2021-04-26 14:01:34
阅读次数:
0
学习无他法,唯有持之以恒 Git解决中文乱码问题git status 乱码解决方法:git config --global core.quotepath false?git commit 乱码解决方法:git config --global i18n.commitencoding utf-8?git ...
分类:
其他好文 时间:
2021-04-26 13:50:31
阅读次数:
0
我只发现IOptions的一个用处——方便了在.NET Core应用程序中使用强类型配置。 有如下appsettings.json配置文件 { "topClient": { "serverUrl": "", "appKey": "", "appSecret": "" } } 为此定义了一个配置类To ...
分类:
Web程序 时间:
2021-04-26 13:49:03
阅读次数:
0
#计算Spark StorageMemory Heap内存 tag: Spark, Spark Memory, Spark Storage Memory 2021-04-23 21:26:25 星期五 version: spark-2.4.5 Executor 进程 org.apache.spark ...
分类:
其他好文 时间:
2021-04-24 13:38:45
阅读次数:
0
1、改成本地模式 . val conf = new SparkConf().setAppName("ScalaWordCount").setMaster("local") 2、编写入参 传参 ...
分类:
其他好文 时间:
2021-04-24 13:30:06
阅读次数:
0
翻译自 https://docs.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-5.0 静态文件,例如 HTML, CSS,images 和 JavaScript,都是作为资源文件由 ASP.NET ...
分类:
Web程序 时间:
2021-04-23 12:19:58
阅读次数:
0
1. 用Pyspark自主实现词频统计过程。 >>> s = txt.lower().split()>>> dd = {}>>> for word in s:... if word not in dd:... dd[word] = 1... else:... dd[word] = dic[word] ...
分类:
其他好文 时间:
2021-04-23 12:19:08
阅读次数:
0
>>> s = txt.lower().split()>>> dd = {}>>> for word in s:... if word not in dd:... dd[word] = 1... else:... dd[word] = dic[word] + 1...>>> ss = sorted( ...
分类:
其他好文 时间:
2021-04-23 12:18:32
阅读次数:
0
1. 用Pyspark自主实现词频统计过程。 >>> s = txt.lower().split()>>> dd = {}>>> for word in s:... if word not in dd:... dd[word] = 1... else:... dd[word] = dic[word] ...
分类:
其他好文 时间:
2021-04-23 12:10:50
阅读次数:
0
1、确认系统版本 cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) 2、yum 安装 gcc 相关 yum -y install gcc gcc-c++ 3、卸载旧的版本 yum -y remove docker docker- ...
分类:
其他好文 时间:
2021-04-23 11:54:07
阅读次数:
0