
Lv.1
已退坑,工作室勿扰
签名:国服hypixel要没了,诶,真就网易的土豆服务器,hyp又炸了,无聊死了。国际hyp还有几天解ban。挂雨亭和e家氪月之光的是真难受。偶尔玩玩inf。网易的三个号都被封了,在玩第四个。哦对了,大号解封了,去基岩版的功防欺负萌新了。
在 【源码编辑器Kitten】意见反馈信箱(长期有效) 中回复
建议增加
[快速执行]----(我发现kitten大约60喵秒运行一个脚本,用一步执行又给人感觉很卡)
[排行榜的第()名第()项](这样就可以方便地读取很多数据)
[添加变量(变量代号)](就是int *,这样就能在运行的过程中增加、减少变量)
2019-04-25T17:23:25 点赞:0
在 【劳模大赛】假期不会迟到,作业也从不缺席! 中回复
1.作文2篇,周记1篇(800字以上)
2.语文练习试卷5张
3.数学试卷(题目密密麻麻)4张
4.英语试卷6张
5.政史地生作业就不说了,因为我本来就不想做
所以,作业做两天两夜才做完,剩下两天还要补习...
不过热爱编程的我,还喵2小时来编程,
以及5分钟来回复这个帖子...
2019-05-01T19:56:29 点赞:2
在 【圆周率】又一个神奇的计算圆周率的程序 能计算到小数点后数十万位 中回复
补:原C程序改写Python:
def show(n,plt_type='pie'):
result = f(n)
a = pd.Series([int(i) for i in result])
b = a.value_counts()
if plt_type=='pie':
plt.figure(figsize=(10,8))
plt.pie(b,labels=b.index,explode=[0.05]*10,shadow=True,autopct='%1.1f%%')
plt.show()
elif plt_type=='bar':
plt.figure(figsize=(10,8))
plt.bar(b.index,b.values)
plt.show()
else:
print('Type Wrong')
2019-06-05T20:27:31 点赞:0
在 【圆周率】又一个神奇的计算圆周率的程序 能计算到小数点后数十万位 中回复
分享一下:现在我们研究计算圆周率,都是用的马青公式,因为这个公式比较简单,容易实现,不过这个公式收敛速度较慢,每迭代一次只能算出1.39位的圆周率值。如果大家想要超高精度超高速度的圆周率计算,不妨使用丘德诺夫斯基公式。这个公式每迭代一次就能计算出14位的圆周率值。
代码如下(python):
# -*- coding: UTF-8 -*-
# 丘德诺夫斯基法計算高精度圓周率程序
# Calculating PI with Chudnovsky-Series
# Author: Idealguy,2018, Shanghai
#
import time
# In following functions, High-Prec Nums are both amplified 10**n
# pre-defined: Base=10**n
#
def Sqrt10005(): # Sqrt(10005L) by Imitate-Manual Method
n1=0
c=10002499687 #100.02499687
mc=8; m=mc
f1=10**mc
f2=f1*f1
a=10005*f2-c*c
while mc<n:
a*=f2
b=c*2*f1
d=a//b
c=c*f1+d
a-=d*(b+d)
mc+=m
if mc*2>n: m=n-mc
else: m=mc
f1=10**m
f2=f1*f1
n1+=1
return c
# Main Program
#
print ("Chudnovsky法計算高精度圓周率程序")
while 1:
n=int(input('計算位數[1..50000],0:退出:'))
if n<=10: break
n+=2
base=10**n
t=time.clock()
# Start Calculating
A=13591409*base; B=A
c3=13591409
i=1
while abs(A)>5:
c1=((108-72*i)*i-46)*i+5
c2=10939058860032000*i**3
c4=c3; c3+=545140134
i+=1
A=A*c1*c3//(c2*c4) # Must in form: A=A*...
B+=A
p=426880*base*Sqrt10005()//B//100
# Post access
print ("用時= %8.3f 秒" % (time.clock()-t))
s=input('是否显示结果(Y/N):')
if (s=='Y')|(s=="y"): print ("PI="+str(p))
# end
2019-06-08T21:12:41 点赞:0
在 【社区里第...个C++项目】时隔n小时,折腾调竟又发布“毫无卵用”的软件! 中回复
include<stdio.h>
int main()
{
printf('帖子太花哨了看不下去了啊啊啊');
return 0;
}2019-08-04T21:33:50 点赞:1
在 【发帖格式测试】如何使用前端不允许的字体和颜色 中回复
<!DOCTYPE html PUBLIC "-//W3C//DTD XH喵L 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
var i = 0;
function changeColor(){
var color = new Array("red","orange","yellow","green","blue","indigo","purple");
var message = new Array("红","橙","黄","绿","蓝","靛","紫");
document.getElementById("color").style.color = color[i];
document.getElementById("message").innerH喵L = message[i];
i++;
if(i==color.length){
i = 0;
}
}
setInterval(changeColor,1000);
onload = changeColor;
</script>
</head>
<body>
<h1 id="color" style="color:red;">彩虹的颜色</h1>
<h1 id="message">红</h1>
</body>
</html>
2019-08-04T22:02:56 点赞:0