一、正则表达式 re模块是python独有的匹配字符串的模块,该模块中提供的很多功能是基于正则表达式实现的,而正则表达式是对字符串进行模糊匹配,提取自己需要的字符串部分,它对所有的语言都通用。 1.常用元字符 字符 说明 . 匹配除换行符(\n)外的所有字符;如果DOTALL已指定标志,则它匹配包括 ...
分类:
编程语言 时间:
2021-02-16 11:52:19
阅读次数:
0
Valid Anagram (E) 题目 Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" ...
分类:
其他好文 时间:
2021-02-15 12:41:17
阅读次数:
0
基础 axios.get('/user?ID=12345') .then(function (response) { // 成功 console.log(response); }) .catch(function (error) { // 失败 console.log(error); }) .the ...
分类:
移动开发 时间:
2021-02-15 12:39:12
阅读次数:
0
Python的第三方模块Tushare是一个免费且专业的财经数据接口,它能获取指定股票的历史数据,并生成DataFrame类型的数据表,便于我们使用pandas模块对数据进行处理和分析。 ...
分类:
编程语言 时间:
2021-02-15 12:36:54
阅读次数:
0
在老毛子的文章里看到的获取本地ip的方法。实现蛮简单。没找到多少关于idStack相关的说明,有空再去外网溜达看看。先记录下。 program 获取本地ip; {$APPTYPE CONSOLE} {$R *.res} uses IdStack; function GetIPLocal: strin ...
分类:
其他好文 时间:
2021-02-15 12:33:49
阅读次数:
0
uses SysUtils; // 生成GUID function TForm2.GetGUID: string; var LTep: TGUID; sGUID: string; begin CreateGUID(LTep); sGUID := GuidToString(LTep); sGUID : ...
引言 在写前端的时候经常用到js或jquery语法,有时候傻傻分不清,现在将学习过程中遇到的总结一下。 $(function(){ })的使用 JQuery 的代码我们通常会包裹在一个$(function(){})函数中,jq 的$(function(){})也就是$(document).ready ...
分类:
其他好文 时间:
2021-02-15 12:18:54
阅读次数:
0
通常会分为两种情况,一种是去除完全重复的行数据,另一种是去除某几列重复的行数据,就这两种情况可用下面的代码进行处理。 1. 去除完全重复的行数据 data.drop_duplicates(inplace=True) 2. 去除某几列重复的行数据 data.drop_duplicates(subset ...
分类:
编程语言 时间:
2021-02-15 12:17:56
阅读次数:
0
今天学习来源是:https://www.bilibili.com/video/BV1hE411t7RN 学习python的两个常用函数 两个pytorch常用函数 dir()函数,能让我们知道工具箱以及工具箱中的分隔区有什么东西。 help()函数,能让我们知道每个工具是如何使用的,工具的使用方法。 ...
分类:
其他好文 时间:
2021-02-15 12:15:13
阅读次数:
0
import threading import time def test1(): print(1+5) def test2(): print(5+8) def test3(): print(5 + 8) def test4(): print(5 + 8) def test5(): print(5 ...
分类:
编程语言 时间:
2021-02-15 12:03:29
阅读次数:
0