1.基本if语句 Python的写法 If条件: 条件满足 Else: 条件不满足时 案例:话费计算 #计算话费 #(1)输入通话的秒数 n = input("请输入通话秒数:") #(2)将通话的秒数转换成分钟 n = int(n) if n < 0: print("请输入正确的秒数") exit ...
分类:
编程语言 时间:
2021-04-27 14:57:59
阅读次数:
0
Date ()是一个专门用来创建时间对象的,是一个复杂数据类型,具有读写属性 语法: var time = new Date() 返回值:当前终端的时间 // 1.创建当前时间对象 var time = new Date() // 2.创建指定日期的时间对象,至少传递两个参数,分别是:年,月,日,时 ...
分类:
Web程序 时间:
2021-04-27 14:57:46
阅读次数:
0
#猜你喜欢模块制作 ##主要知识点:结构伪类选择器和伪元素选择器&常规页面布局 ###HTML结构 <!-- 猜你喜欢模块 --> <div class="like"> <div class="hd"> <div class="left">猜你喜欢</div> <div class="right"> ...
分类:
Web程序 时间:
2021-04-27 14:55:10
阅读次数:
0
##CSS引用方式 外部引用 : 最理想的引用方式 , 就是将CSS代码与HTML代码分别放在不同的文件中 , 然后通过HTML中的<link/>标签来引用 , 如下: 外部引入CSS演示 代码 : <!DOCTYPE html> <html> <head> <title>外联样式引入</title ...
分类:
Web程序 时间:
2021-04-27 14:52:36
阅读次数:
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
1、css样式导入 2、css基础选择器 3、css+div布局 4、背景图片 5、text文本 6、font字体 ...
分类:
Web程序 时间:
2021-04-27 14:32:35
阅读次数:
0
/////////////////////////// 代码如下 <template> <div class="report-forms-page"> <div class="report-forms-main"> <div class="bottomForm"> <div style="margi ...
分类:
其他好文 时间:
2021-04-27 14:31:54
阅读次数:
0
using System; namespace EventDelegation { /// <summary> /// 事件参数类 /// </summary> public class EventDate : EventArgs { public int eventID; public int a ...
简单的定义 const numArr:number[]=[1,2,3] const strArr:string[]=['a','b','c'] const undeArr:undefined[]=[undefined,undefined] 数组中有字符串又有数组的类型 const arr:(numb ...
分类:
编程语言 时间:
2021-04-27 14:24:27
阅读次数:
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