绝对等于 x “5” 返回值false x 5 返回值true !== 不绝对等于 x!==“5” 返回值true x!==5 返回值false 可以在条件语句中使用比较运算符对值进行比较,然后根据结果来采取行动: if (age<18) x="Too young"; ...
分类:
编程语言 时间:
2020-12-30 10:50:17
阅读次数:
0
1.使用Marshal类的StructureToPtr与PtrToStructure函数对object与byte数组进行转换 命名空间:System.Runtime.InteropServices /// <summary> /// 将对象转换为byte数组 /// </summary> /// < ...
分类:
编程语言 时间:
2020-12-30 10:46:02
阅读次数:
0
处理线程中打开文件,每次读取一行并记录当前读取位置,没有下一行让出一秒logfile = './logs/%s_%s.log' % (appName, time.strftime('%Y_%m_%d')) file = open(logfile, 'r', encoding='utf-8') whi ...
分类:
编程语言 时间:
2020-12-30 10:45:44
阅读次数:
0
1 #region 正序 2 /// <summary> 3 /// 正序 4 /// </summary> 5 /// <typeparam name="T"></typeparam> 6 /// <param name="source"></param> 7 /// <param name="o ...
分类:
其他好文 时间:
2020-12-29 11:32:07
阅读次数:
0
https://github.com/remy/nodemon#config-files https://github.com/remy/nodemon/blob/master/doc/sample-nodemon.md { "watch": ["src"], "ext": "html,vue,js ...
分类:
其他好文 时间:
2020-12-29 11:30:58
阅读次数:
0
ftp相关的包不需要安装,python自带 # -*- coding:utf-8 -*- from ftplib import FTP def upload(f, remote_path, local_path): fp = open(local_path, "rb") buf_size = 102 ...
分类:
编程语言 时间:
2020-12-29 11:28:50
阅读次数:
0
在resource里引入Library selenium2library Library String (正则对于数据处理) 操作 关键字 打开浏览器 Open Browser 地址 浏览器(谷歌:gc 火狐:ff) 控制浏览器最大化 Maximize Browser Window 隐式等待元素显示 ...
分类:
其他好文 时间:
2020-12-29 11:28:06
阅读次数:
0
golang开发oracle利器godror godror是golang中连接oracle进行程序开发的一个驱动库,解决了长期以来go对oracle支持不友好的问题。github项目地址 简单查询示例: 将查询结果转换为json字符串输出 package main import ( "databas ...
分类:
数据库 时间:
2020-12-29 11:16:00
阅读次数:
0
创建和打开文件 在Python中,内置了文件(File)对象。在使用文件对象时,首先需要通过内置的open()方法创建一个文件对象,然后通过该对象提供的方法进行一些基本文件操作。例如,可以使用文件对象的write()方法向文件中写入内容,以及使用close()方法关闭文件等。下面将介绍如何应用Pyt ...
分类:
编程语言 时间:
2020-12-29 11:13:09
阅读次数:
0
1. 安装 git bash 点我去git-scm官网 2. 安装 Cygwin 点我去Cygwin官网 Cygwin is: a large collection of GNU and Open Source tools which provide functionality similar to ...