自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 python的you-get报错‘vd_source‘不是内部或外部命令,也不是可运行的程序

2023-08-20 17:44:50 4188 6

原创 红包算法:生成 10 个随机数 [0,100] 且最终 10 个随机数之和为 100 ,数字为整数,可重复(去除0)

【代码】红包算法:生成 10 个随机数 [0,100] 且最终 10 个随机数之和为 100 ,数字为整数,可重复(去除0)

2023-06-10 13:30:19 301

原创 How to Solve Python AttributeError: ‘DataFrame’ object has no attribute ‘concat’

AttributeError: ‘DataFrame’ object has no attribute ‘concat’

2022-06-13 21:05:45 9838 3

转载 安装sklearn报错 ERROR: Could not install packages due to an EnvironmentError

ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\10647\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python38\\site-packages\\sklear..

2020-11-27 12:42:47 620

原创 Python七彩管实现某个时刻的倒计时(如:北京奥运会倒计时)

import turtle, time# 七彩管间距def drawgap(): turtle.penup() turtle.fd(5)# 绘制单根七彩管def drawline(draw): drawgap() turtle.pendown() if draw else turtle.penup() turtle.fd(40) drawgap() turtle.right(90)# 按照数字的特性绘制七彩管def drawdig.

2020-10-30 11:46:23 1493

原创 Python根据表格每行数据,匹配在txt文章中出现的次数统计

用途:根据表格每行数据,匹配在txt文章中出现的次数统计示例:注意事项:1. 环境:pip install re & pandas & xlrd; python 3;2. 表格第一行会被忽略,往下才是关键词;关键词页放在第一个表单,最好只有这一个表单;3. 表格与TXT文件都放在.py同级目录,或者在代码中显示绝对路径;import reimport pandas as pdimport xlrd# 读取匹配关键字表格并输出为列表(忽略...

2020-10-29 16:58:18 570

转载 C++ 简单计算器(栈实现)

#include "stdio.h"#include "string.h"#define MAX 1001 double stack[MAX];int tail; int main(){ int a; while(scanf("%d ", &a) && a != 0){ tail = 0; stack[++tail] = 1.0*a; //tail始终指向末尾数字位置 // 1.入栈所有数据(如果遇到*/号,只更新栈尾) char ch1, ch2.

2020-08-06 15:30:17 1282

原创 C/C++直接插入排序

# include <iostream>void insertSort(int array[], int n);void outArray(int array[], int n);int main(){ const int n = 10; int array[n] = { 6,5,4,3,2,1,0,7,8,9 }; insertSort(array...

2020-01-09 18:06:38 125

原创 C++冒泡排序优化

# include <iostream>void bubbleSort(int* array, int n){ int i, j, k, temp; int count = 0; for (i = 0; i < n - 1; i++) { for (j = 0; j < n - 1 - i; j++) { count++; if (a...

2020-01-08 20:15:24 196

转载 C语言之通过函数形参修改实参

#include <stdio.h> int x = 1;int y = 2;int *p = &x; void modify_1(int a) { a = 11; } // 通过变量传递,对形参内容修改,实参不变void modify_2(int *a) { *a = 22; } // 通过地址传递,对实参内容修改,实参修改void modify...

2020-01-06 12:01:12 3238

原创 Python 汉诺塔(8行代码)

# 汉诺塔 hanoi 递归解法def hanoi(n, a, b, c): if n == 1: print(a, ' ---&gt; ', c) # 如果一个盘子则直接从a移动到c else: hanoi(n - 1, a, c, b) # 借助c把前n-1个盘子从a移动到b print(a, ' ---&gt; ', c) ...

2018-09-12 12:16:18 195

原创 C语言 大数相乘(逆序字符串处理)

#include &lt;stdio.h&gt;#include &lt;string.h&gt;/* 大数相乘 2018年9月7日22:21:02 *//* 大数采取进位处理的函数 */void carryFunc(int array_num[], int len){ for (int k = 0; k &lt; len + 1; k ++) { ...

2018-09-10 00:40:59 585

转载 adb 常用命令(摘)

转自:https://blog.csdn.net/suxing_ing/article/details/54907860显示当前运行的全部模拟器:adb devices获取序列号:adb get-serialno重启机器:adb reboot重启到bootloader,即刷机模式:adb reboot bootloader重启到recovery,即恢复模式:adb reboot recovery查...

2018-07-16 10:59:37 1638

空空如也

空空如也

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

TA关注的人

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