相关文章
计算pi小数点后10000位
博客已搬家到 https://www.wanglp.site)
数据结构课上,老师让我们计算一下pi的10000位,复习一下面向对象。 **First Try:**定义一个高精度类hp(high precision),实现加减乘除,输入输出,然后随便找一个公式࿰…
建站知识
2025/1/22 21:01:45
输出1-10000之间的质数python
一、法一:一个合数的所有因数最大的不会超过这个数的开方 a b n abn abn a < s q r t ( n ) a<sqrt(n) a<sqrt(n) b < s q r t ( n ) b<sqrt(n) b<sqrt(n)
# # 1-10000里面的质数
import math
res [2] # 保存结果
n 10000
for i in range…
建站知识
2025/1/22 20:52:11
Hive [ 08S01] Could not open client transport with JDBC Uri: jdbc:hive2://hadoop102:10000: java.net
连接hive时出现了一个错误: [ 08S01] Could not open client transport with JDBC Uri: jdbc:hive2://hadoop102:10000: java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect. 之前一直好好的…
建站知识
2025/1/22 22:01:22
android S PendingIntent适配
03-15 07:59:06.602 9408 9408 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: com.odm.xxx: Targeting S (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. 这个错误我是在使…
建站知识
2025/1/22 21:45:18
STM32CubeIDE Audio播放音频 WM8978 + I2S + DMA双缓存模式
随言: STM32CubeIDE Audio播放音频,DAC TIM DMA STM32CubeIDE Audio播放音频,DAC TIM DMA_sudaroot的博客-CSDN博客 STM32CubeIDE Audio播放音频,PWM TIM STM32CubeIDE Audio播放音频,PWM TIM_sudaroot的博客-CS…
建站知识
2025/2/13 16:58:16
python: 循环结构之求s=1+2+3+...+n直到s>=m
s123…n,当s刚超过某个数m时,停止运算。求n和s的值
输入格式: 例如:输入1000
输出格式: 输出格式 :103512…45
输入样例: 在这里给出一组输入。例如: 1000
输出样例: 在这里给出相应的输出。例如: 1035…
建站知识
2025/1/22 21:50:54
Hive之Beeline连接10000端口修改
Beeline连接
WARNING: Hive CLI is deprecated and migration to Beeline is recommended. 贴心翻译: 警告:不建议使用Hive CLI,建议迁移到Beeline
小伙伴们启动hive的时候是不是经常会有上面那个警告,让人看着非常的不爽
[wzj…
建站知识
2025/1/22 21:49:05
K8S 部署 SpringCloud2.0 项目完整实践
项目版本情况
SpringBoot: 2.0.3.RELEASE
<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.0.3.RELEASE</version>
</parent>SpringCloud:…
建站知识
2025/3/1 14:17:16