自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

tungLeung的博客

记录入坑编程的点点滴滴

  • 博客(3)
  • 收藏
  • 关注

原创 Java实现数组

public class Array { private int data[]; // 数组大小 private int n; //数组实际元素个数 private int count; public Array(int capacity) { this.data = new int[capacity]; this.n = capacity; this.count = 0; } public .

2021-04-28 10:46:16 136

原创 用Python实现斐波那契数列

#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Fri May 17 19:39:06 2019@author: tungleung"""a = 1b = 1print(1, end = ' ')print(1, end = ' ')for x in range(2, 100000): if x =...

2019-05-17 20:01:14 206

原创 用Python寻找水仙花数

100天学Python之第五天水仙花数(Narcissistic number)也被称为超完全数字不变数(pluperfect digital invariant, PPDI)、自恋数、自幂数、阿姆斯壮数或阿姆斯特朗数(Armstrong number),水仙花数是指一个 3 位数,它的每个位上的数字的 3次幂之和等于它本身(例如:1^3 + 5^3+ 3^3 = 153)。import ma...

2019-05-17 18:02:32 3830

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除