• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
HBUwyf
博客园    首页    新随笔    联系   管理    订阅  订阅
2022年11月28日
Hadoop高可用集群存在的一些共性问题
摘要: Hadoop高可用集群存在的一些共性问题 1.NameNode 偶然性挂掉 问题原因: 用群启脚本启动HA集群,启动过程中NameNode要依赖于JournalNode,所以在启动过程中, ​ NameNode会主动连接JournalNode 但是 NN 和 JN启动是异步的,所以导致NN可能不会即 阅读全文
posted @ 2022-11-28 15:37 hbuwyf 阅读(65) 评论(0) 推荐(0)
2018年4月18日
C++ 用运算符重载 实现复数相加
摘要: #include "stdafx.h" #include using namespace std; class Complex {public: Complex(){real = 0;imag = 0;} Complex (double r, double i){real = r ;imag = i;} Complex operator+(Complex &c2); ... 阅读全文
posted @ 2018-04-18 20:13 hbuwyf 阅读(571) 评论(0) 推荐(0)
2018年4月13日
python 如何以逗号为分隔符输出数组
摘要: l = [1,2,3,4] print(" ".join(str(i) for i in l)) #输出结果为:1 2 3 4(注意,此时4后面没有空格啦) #以逗号为分隔符 l = [1,2,3,4] print(",".join(str(i) for i in l)) #输出结果为:1,2,3,4(注意,此时4后面没有逗号) 阅读全文
posted @ 2018-04-13 08:51 hbuwyf 阅读(7488) 评论(0) 推荐(1)
2018年4月10日
玫瑰
摘要: import turtle turtle.speed(0) turtle.penup() turtle.pensize(3) turtle.pencolor("firebrick") turtle.goto(0,50) turtle.pendown() #玫瑰 turtle.begin_fill() turtle.fillcolor("lightcoral") turtle.left(30) t... 阅读全文
posted @ 2018-04-10 17:21 hbuwyf 阅读(178) 评论(0) 推荐(0)
2018年4月4日
P77 3.12
摘要: #P77 3.12 #一年365天,初始水平值为1.0,每工作一天水平增加N, #不工作时水平不下降,一周连续工作4天,请编写程序运算 #结果并填写表格 n = 1.0 for j in range (10): N = 0.001*j n = n*(1+N) print ("{:.2f}". format(n),end="\t") 阅读全文
posted @ 2018-04-04 20:25 hbuwyf 阅读(590) 评论(0) 推荐(0)
2018年3月30日
Python turtle print TaiChi
摘要: import turtle turtle.pensize(20) turtle.pencolor("black") turtle.penup() turtle.goto(0,300) turtle.down() turtle.begin_fill() turtle.fillcolor("black") turtle.circle(-300,180) turtle.circle(-150,180)... 阅读全文
posted @ 2018-03-30 08:49 hbuwyf 阅读(299) 评论(0) 推荐(0)
2018年3月29日
练习 基础题+拓展题
摘要: #输入一个三位自然数 输出它的 个位十位百位 #Python 第二次作业 a = input ("请输入一个三位自然数:") x = int((eval(a)//100)) y = int((eval(a))-x*100)//10 z = int((eval(a))%10) print("该数百位为:") print(x) print("个位为:") print(y) print("个位为:")... 阅读全文
posted @ 2018-03-29 09:03 hbuwyf 阅读(227) 评论(0) 推荐(0)
2018年3月28日
第一次作业
摘要: #叠加等边三角形绘制。(教材第二章程序练习题 2.5 ,第56页)import turtle turtle.penup() turtle.pendown() turtle.pensize(30) turtle.pencolor("blue") turtle.fd(300) turtle.seth(- 阅读全文
posted @ 2018-03-28 19:14 hbuwyf 阅读(179) 评论(0) 推荐(0)
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3