#!/bin/bash while read linedo echo $line txt=`echo $line |awk -F' ' '{print $1}'` id=`echo $line|awk -F' ' '{print $3}'` echo $txt echo $id sed "s/ws2 ...
分类:
系统相关 时间:
2021-05-03 12:39:24
阅读次数:
0
一、目标 会PICO引脚的使用 点亮LED 二、上程序 import machine import utime led_onboard = machine.Pin(25, machine.Pin.OUT) while True: led_onboard.value(1) utime.sleep(5) ...
分类:
其他好文 时间:
2021-05-03 12:32:04
阅读次数:
0
异常处理机制 抛出异常 捕获异常 五个关键词 try、catch、finally、throw、throws package com.exception; public class Test { public static void main(String[] args) { try { new Te ...
分类:
其他好文 时间:
2021-05-03 12:20:05
阅读次数:
0
Allow access to Azure services 这个参数会控制VNET访问这个mysql。如果是YES, vnet的VM可以访问mysql 如果是NO, 如果VM访问会有提示报错: ERROR 9009 (28000): Client from Azure Virtual Networ ...
分类:
数据库 时间:
2021-05-03 11:41:19
阅读次数:
0
Mysql配置读写数据库 ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER privilege(s) for this operation 原因之前mysql的vi /etc/my.cnf 修改配置没有重启 ...
分类:
其他好文 时间:
2021-04-30 12:42:22
阅读次数:
0
linux Error downloading packages free 0 * needed 71 k 原因:硬盘空间不足 查看磁盘大小 /]# df -hl 从/主目录开始搜索,查看占用磁盘大的 # du -sh * 最后发现jenkins目录下占用过高 cd /var/lib/Jenkins ...
分类:
系统相关 时间:
2021-04-30 12:41:59
阅读次数:
0
Django cbv的执行流程 path('test/',views.TestView.as_view()), # path('test/',View类的as_view内部有个view闭包函数内存地址), # path的第二个参数是:View类的as_view内部有个view闭包函数内存地址 1 一 ...
代码有一个bug,当数组长度为13的时候,查找数组最后一个数时会报数组角标越界。将代码: //获取到斐波那契分割数值的下标 while (high > f[k] - 1) { k++; } 改成 //获取到斐波那契分割数值的下标 while (high >= f[k] - 1) { k++; } 就 ...
分类:
编程语言 时间:
2021-04-30 12:34:46
阅读次数:
0
实验任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n ...
分类:
编程语言 时间:
2021-04-30 12:31:46
阅读次数:
0
任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n = ...
分类:
其他好文 时间:
2021-04-30 12:31:08
阅读次数:
0