- 博客(6)
- 资源 (1)
- 收藏
- 关注
转载 ubuntu换源脚本
Ubuntu自动换源脚本引用上文,此处引用方便自己使用#!/bin/bash#1.确定系统版本代号Codename=$(cat /etc/os-release | grep VERSION_CODENAME |awk -F'=' '{print $2}')echo "检测到您的Ubuntu系统版本为:$Codename"#2.选择镜像源echo "**********************************"echo "请选择镜像源:"echo " 1.阿里 .
2022-02-10 16:01:07
801
原创 树莓派Ubuntu系统无GUI 利用python+selenium+chrome实现自动健康打卡
树莓派Ubuntu系统无GUI 利用python+selenium+chrome实现自动健康打开
2020-11-29 13:05:57
1393
原创 Ubuntu18.04打开关闭DNS服务
参考这篇文章https://ilouis.cn/ubuntu/setting_dns.htmlsystemctl start systemd-resolvedsystemctl enable systemd-resolved前几天在Ubuntu里面用docker容器安装了一个Adguardhome当作DNS解析服务器,导致53端口冲突,于是把Ubuntu的DNS解析禁用掉,这是重新打开DNS解析服务的命令此外,关于使用netplan修改网络配置可参考这篇文章Ubuntu 18.04 网络配置介绍
2020-11-17 15:04:44
4028
原创 PAT1008 数组元素循环右移问题 (20分)
自己写的,测试点二不过// 1008.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。//#include <stdio.h>#include <stdlib.h>int main(){ int N = 0, M = 0; scanf("%d %d", &N, &M); int* a = (int*)malloc(N*sizeof(int)); for (int i = 0; i < N; i
2020-10-28 23:48:05
119
原创 PAT 乙级 1005题
PAT 乙级 1005题采用数组储存每个数的状态,初始化数组所有值为0,读入的数据状态置1,计算初始值所产生的Callatz的覆盖值置2。#include <stdio.h>#include <stdlib.h>int Callatz(int n);int main(){ int K = 0, count = 0; int num[101] = { 0 }; int x = 0; while (scanf("%d", &K) !=
2020-10-24 18:27:17
250
opencv4.5.0编译后资源
2020-11-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人