运算符 运算符是一种特殊的符号,用以表示数据的运算、赋值和比较等。 1、算数运算符 2、赋值运算符 符号:=当“=”两侧数据类型不一致时,可以使用自动类型转换或使用强制类型转换原则进行处理。支持连续赋值。 扩展赋值运算符: +=, -=, *=, /=, %= 3、比较运算符 4、逻辑运算符 &—逻 ...
分类:
其他好文 时间:
2021-01-21 10:47:17
阅读次数:
0
实现效果如下: 代码如下: Sub MyCharacters() Dim arr, s$, i&, L&, n& s = InputBox("请输入改变的字符", "提示") '需要改变格式的字符串 n = Len(s) '变量s的长度 If n = 0 Then: Exit Sub Applica ...
分类:
其他好文 时间:
2021-01-20 12:08:40
阅读次数:
0
1、XPATH使用方法 使用XPATH有如下几种方法定位元素: a、通过绝对路径定位元素(不推荐!) WebElement ele = driver.findElement(By.xpath("html/body/div/form/input")); b、通过相对路径定位元素 WebElement ...
分类:
其他好文 时间:
2021-01-19 12:11:23
阅读次数:
0
组件:传递变量 知识点 为组件传递变量数据 组件的数据 制作可接受变量参数的组件。 综合例 <div id="myApp"> <div>请输入您的名字:<input v-model="myname"></div> <hr/> <say-hello :pname="myname" /> </div> ...
分类:
其他好文 时间:
2021-01-19 12:09:32
阅读次数:
0
一、思路及部分代码 : 客户端 1.获取服务器的地址,端口号 //1.获取服务器的地址,端口号 InetAddress serverIP = InetAddress.getByName("127.0.0.1"); int port = 666; 2.创建一个Socket连接,参数为:地址和端口号 / ...
分类:
其他好文 时间:
2021-01-13 11:17:07
阅读次数:
0
<template> <view class="login"> <view class="content-wrapper"> <view class="title"> <h1>欢迎使用考试系统</h1> </view> <view class="login-form"> <view class="l ...
分类:
移动开发 时间:
2021-01-11 11:21:48
阅读次数:
0
# 打印每个o出现的位置 str1 = "hellopythonhelloworld" str2 = 'hellopythonhelloworld' str3 = 'hellopythonhelloworl' index = 0 for i in str1: if i == 'o': print(i ...
分类:
其他好文 时间:
2021-01-11 10:40:33
阅读次数:
0
练习:判断是否为闰年 year=eval(input("请输入年份:"))pd=Trueif year%400==0: pd=Trueelif year%4==0 and year%100!=0: pd = Trueelse: pd=Falseif pd==True: print(str(year) ...
分类:
其他好文 时间:
2021-01-11 10:32:50
阅读次数:
0
前端thymeleaf下拉框select、input框中的date类型js回显问题 1. thymeleaf下的select回显 <select id="genderSelect" name="sizeSelect" class="selectpicker" title="请选择" data-dro ...
分类:
Web程序 时间:
2021-01-07 12:37:23
阅读次数:
0
import sys #第1:print(6/0) #直接运行该命令,出现异常,程序终止 #异常提示: '''Traceback (most recent call last): File "F:/file2.py", line 2, in <module> print(6/0) ZeroDivis ...
分类:
编程语言 时间:
2021-01-06 12:10:07
阅读次数:
0