#文件操作 #打开一个文件: # open("文件名","打开模式") # with open("文件名",'打开模式") as 给文件定义变量名: #文件方法: # file.closes() 关闭文件 # file.closed 判断文件是否关闭 # file.seek(移动字节数) 以字节形式 ...
分类:
其他好文 时间:
2021-04-20 15:37:39
阅读次数:
0
一、词频统计: 1.读文本文件生成RDD lines lines = sc.textFile('file:///home/hadoop/word.txt') 2.将一行一行的文本分割成单词 words flatmap() words=lines.flatMap(lambda line:line.sp ...
分类:
其他好文 时间:
2021-04-20 15:02:06
阅读次数:
0
前端 UI 设计里面有一个经常需要用到的实时搜索场景: 当用户在 inpu 里面键入新的内容后,不依赖于用户触发(如点击按钮),立即自动向后端发起 ajax 查询并展示结果。 这一需求有多种实现方案,典型的是可以设置一个定时器轮询 input 中的内容是否发生变化,若变化了则立即发起后端查询。这种方 ...
分类:
其他好文 时间:
2021-04-20 15:01:13
阅读次数:
0
下载weblogic jar 包 解压 fmw_12.1.3.0.0_wls.jar 打开目录中的Disk/install安装目录,找到名为ng.cmd的脚本文件,以管理员运行 安装步骤 点击下一步 点击下一步 点击下一步 点击下一步 点击下一步 点击安装 点击下一步 到这里weblogic就已经安 ...
微信搜索??「程序员小熊」,关注这个写干货的程序员,回复「算法」或「python」,即可获取经典算法或 python 电子书籍~ ...
分类:
其他好文 时间:
2021-04-20 14:42:03
阅读次数:
0
1.simple_php ?<?php show_source(__FILE__); include("config.php"); $a=@$_GET['a']; $b=@$_GET['b']; if($a==0 and $a){ echo $flag1; } if(is_numeric($b)){ ...
分类:
其他好文 时间:
2021-04-20 14:34:36
阅读次数:
0
1、编写脚本 createuser.sh,实现如下功能:使用一个用户名作为参数,如果 指定参数的用户存在,就显示其存在,否则添加之;显示添加的用户的id号等信息 read -p " input the user: " USER if id $USER &> /dev/null ; then echo ...
分类:
系统相关 时间:
2021-04-20 14:31:15
阅读次数:
0
代码: #include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int ma ...
分类:
其他好文 时间:
2021-04-20 14:10:46
阅读次数:
0
一、词频统计: 读文本文件生成RDD lines lines=sc.textFile("file:///usr/local/spark/mycode/rdd/word.txt") lines.foreach(print) 将一行一行的文本分割成单词 words flatmap() words=lin ...
分类:
其他好文 时间:
2021-04-20 14:04:55
阅读次数:
0
6.成绩统计(15) 对给定人数的成绩输出其及格率和优秀率(百分号前保留整数) n = int(input()) a,b=0,0 for i in range (n): s = int(input()) if s>=60: a+=1 if s>=85: b+=1 print('{:.0%}'.for ...
分类:
其他好文 时间:
2021-04-19 15:57:59
阅读次数:
0