码迷,mamicode.com
首页 >  
搜索关键字:python function    ( 188437个结果)
python---re模块
一、正则表达式 re模块是python独有的匹配字符串的模块,该模块中提供的很多功能是基于正则表达式实现的,而正则表达式是对字符串进行模糊匹配,提取自己需要的字符串部分,它对所有的语言都通用。 1.常用元字符 字符 说明 . 匹配除换行符(\n)外的所有字符;如果DOTALL已指定标志,则它匹配包括 ...
分类:编程语言   时间:2021-02-16 11:52:19    阅读次数:0
0242. Valid Anagram (E)
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
Vue复习六(vue-cli/axios)
基础 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] 获取并分析股票历史数据的案例
Python的第三方模块Tushare是一个免费且专业的财经数据接口,它能获取指定股票的历史数据,并生成DataFrame类型的数据表,便于我们使用pandas模块对数据进行处理和分析。 ...
分类:编程语言   时间:2021-02-15 12:36:54    阅读次数:0
获取本地ip
在老毛子的文章里看到的获取本地ip的方法。实现蛮简单。没找到多少关于idStack相关的说明,有空再去外网溜达看看。先记录下。 program 获取本地ip; {$APPTYPE CONSOLE} {$R *.res} uses IdStack; function GetIPLocal: strin ...
分类:其他好文   时间:2021-02-15 12:33:49    阅读次数:0
Delphi - 生成GUID
uses SysUtils; // 生成GUID function TForm2.GetGUID: string; var LTep: TGUID; sGUID: string; begin CreateGUID(LTep); sGUID := GuidToString(LTep); sGUID : ...
分类:Windows程序   时间:2021-02-15 12:21:06    阅读次数:0
$(document).on和$('#idname').on和$(function(){ })区别
引言 在写前端的时候经常用到js或jquery语法,有时候傻傻分不清,现在将学习过程中遇到的总结一下。 $(function(){ })的使用 JQuery 的代码我们通常会包裹在一个$(function(){})函数中,jq 的$(function(){})也就是$(document).ready ...
分类:其他好文   时间:2021-02-15 12:18:54    阅读次数:0
Python 去重csv文件中相同的重复行
通常会分为两种情况,一种是去除完全重复的行数据,另一种是去除某几列重复的行数据,就这两种情况可用下面的代码进行处理。 1. 去除完全重复的行数据 data.drop_duplicates(inplace=True) 2. 去除某几列重复的行数据 data.drop_duplicates(subset ...
分类:编程语言   时间:2021-02-15 12:17:56    阅读次数:0
【2020.02.11】jupyter特点、Pytorch数据加载、dataset类的使用
今天学习来源是:https://www.bilibili.com/video/BV1hE411t7RN 学习python的两个常用函数 两个pytorch常用函数 dir()函数,能让我们知道工具箱以及工具箱中的分隔区有什么东西。 help()函数,能让我们知道每个工具是如何使用的,工具的使用方法。 ...
分类:其他好文   时间:2021-02-15 12:15:13    阅读次数:0
python 使用多线程同时执行多个函数
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!