1.基本if语句 Python的写法 If条件: 条件满足 Else: 条件不满足时 案例:话费计算 #计算话费 #(1)输入通话的秒数 n = input("请输入通话秒数:") #(2)将通话的秒数转换成分钟 n = int(n) if n < 0: print("请输入正确的秒数") exit ...
分类:
编程语言 时间:
2021-04-27 14:57:59
阅读次数:
0
1.在root权限下登录mysql 2.进入mysql库 mysql>use mysql 3.查看root用户权限 mysql>select User,Host,plugin from user; 4.将root用户的auth_sock改为mysql_native_password mysql>up ...
分类:
数据库 时间:
2021-04-27 14:42:37
阅读次数:
0
Master配置 global_defs { notification_email { root@localhost } notification_email_from keeplived@localhost smtp_server 127.0.0.1 smtp_connect_timeout 30 ...
分类:
其他好文 时间:
2021-04-27 14:42:00
阅读次数:
0
#Windows节点加入K8S集群(K8S搭建Linux和Window混合集群) 说明:K8S多数情况用于linux系统的集群,目前很少人实践linux 和 windows 的混合集群。linux 和 windows 的K8S混合集群,是以linux 为Master节点,Windows 为 Node ...
time_start = time.time() SR_left = net() torch.cuda.synchronize() time_end = time.time() ...
分类:
其他好文 时间:
2021-04-26 13:53:00
阅读次数:
0
<template> <div class="box"> <div class="swipers"> <template v-for="(item, index) in lists" > <div class="item" v-if="index==active" :key="'0'+index" ...
分类:
其他好文 时间:
2021-04-26 13:50:48
阅读次数:
0
1.Datatable、DataRow[]、List 、List子集合、 某列求和 DataTable dt = new DataTable(); var sum1 = dt.Compute("SUM(Volume)", ""); DataRow[] drList = dt.Select("Name ...
1. bat程序: restartProxify.bat @echo off taskkill /f /im Proxifier.exe cd / cd "C:\Program Files (x86)\Proxifier" Proxifier.exe echo 成功重启 Proxifier.exe ...
import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Problem53 { public static void main(String[] args) { ...
分类:
编程语言 时间:
2021-04-26 13:44:00
阅读次数:
0
1、查看摄像头是否已经挂载的命令 方法一: ls /dev/video* 方法二: ls /dev | grep video 或 ls /dev | grep video* 2、如果有多个USB端口,则通过以下命令查看摄像头挂载的端口号 ls -l /sys/class/video4linux/vi ...
分类:
系统相关 时间:
2021-04-26 13:37:52
阅读次数:
0