摘要:
新建项目 添加依赖 编辑hello-spark/pom.xml,添加: <properties> <spark.version>2.3.4</spark.version> <scala.version>2.11</scala.version> </properties> <dependencies> 阅读全文
posted @ 2024-06-27 11:29
猫种鱼
阅读(63)
评论(0)
推荐(0)
摘要:
安装Scala插件 配置 JDK&SDK 点击download下载需要的scala版本(spark2.3 应选择2.11) 完成! 阅读全文
posted @ 2024-06-27 11:21
猫种鱼
阅读(15)
评论(0)
推荐(0)
摘要:
Maven安装 方法1 brew install maven # 会安装openjdk和maven mvn -v # 验证并查看Maven home 添加环境变量 export M2_HOME=/usr/local/Cellar/maven/3.6.3_1/libexec 方法2 安装JDK 下载解 阅读全文
posted @ 2024-06-27 11:13
猫种鱼
阅读(38)
评论(0)
推荐(0)
摘要:
def word_table_formater(): from win32com import client word = client.Dispatch('Word.Application') doc = word.Documents.Open('C:\\Users\\Administrator\ 阅读全文
posted @ 2024-06-27 11:12
猫种鱼
阅读(40)
评论(0)
推荐(0)
摘要:
def copy_table_from_excel_to_word(): import time from win32com import client excel = client.Dispatch('Excel.Application') word = client.Dispatch('Word 阅读全文
posted @ 2024-06-27 11:08
猫种鱼
阅读(74)
评论(0)
推荐(0)
摘要:
df.write.format('org.elasticsearch.spark.sql') \ .option('es.nodes', '10.0.0.1') \ .option('es.port', '9200') \ .option('es.resource', 'test/nested_ty 阅读全文
posted @ 2024-06-27 11:06
猫种鱼
阅读(31)
评论(0)
推荐(0)
摘要:
# -*- coding: utf-8 -*- # 冒泡排序 def bubble_sort(nums): i = 1 exchanged = True while i < len(nums) and exchanged: exchanged = False for j in range(len 阅读全文
posted @ 2024-06-27 11:01
猫种鱼
阅读(13)
评论(0)
推荐(0)
摘要:
ctrl+shift+P打开控制台 输入set,在出现的候选项里选择set syntax:Python即可~ 阅读全文
posted @ 2024-06-27 11:00
猫种鱼
阅读(258)
评论(0)
推荐(0)
摘要:
安装mysqlconnector pip install mysql-connector-2.1.6.tar.gz 安装sqlalchemy pip install sqlalchemy mysql的连接与操作 import mysql.connector cnt = mysql.connect 阅读全文
posted @ 2024-06-27 10:59
猫种鱼
阅读(76)
评论(0)
推荐(0)
摘要:
网上方法不奏效,试试这个 { "keys": ["f5"], "command": "repl_open", "args":{ "cmd": ["python", "-u", "$file_basename"], "cwd": "$file_path", "encoding": "utf8", "e 阅读全文
posted @ 2024-06-27 10:54
猫种鱼
阅读(65)
评论(0)
推荐(0)
摘要:
1、安装装Oracle数据库client Instant Client 下载后解压,然后把文件夹路径添加至系统变量path。 新建文本文档 输入: orcl = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = l 阅读全文
posted @ 2024-06-27 10:37
猫种鱼
阅读(135)
评论(0)
推荐(0)
摘要:
#Python 3.6 #author: ald # import numpy as np x = np.array([[3, 3],[4, 3],[1, 1],[5,2]]) y = np.array([1, 1, -1,-1]) Gamma = x.dot(x.T) eta = 1 alph 阅读全文
posted @ 2024-06-27 10:23
猫种鱼
阅读(14)
评论(0)
推荐(0)
摘要:
参照John C. Platt《Sequential Minimal Optimization - A Fast Algorithm for Training Support Vector Machines》中的伪代码编写的Python程序(去除了文中的tol) #SVM-SMO #by ald 阅读全文
posted @ 2024-06-27 10:17
猫种鱼
阅读(84)
评论(0)
推荐(0)

浙公网安备 33010602011771号