码迷,mamicode.com
首页 >  
搜索关键字:python function    ( 188437个结果)
python中的内嵌函数
python中允许在函数内定义另一个函数,这种函数称为内嵌函数或者内部函数。 1、 >>> def a(): ## 外层函数 print("hello world!") def b(): ## 内层函数 print("xxxxxxx!") return b() >>> a() hello world ...
分类:编程语言   时间:2021-03-06 14:22:06    阅读次数:0
python+appium微信小程序自动化实现
一、安装Appium 二、Appium SDK配置 三、chromedriver驱动路径配置及appium启动 1.查看X5内核版本 微信小程序是基于goole的webview 做了封装了,叫x5内核,所以跟chrome浏览器定位元素一样,需要配置chromedriver.exe, 通过 Uc-de ...
分类:微信   时间:2021-03-06 14:20:58    阅读次数:0
vue3 组件传参
组件传参 散记点(父传子) v-bind传入Number,Function,Object等类型 <mycomponent :count="100" :data="{name: "wise"}" :list="['foo','bar']" :action="() => {}"/> 传递组件,组件变量形 ...
分类:其他好文   时间:2021-03-06 14:19:47    阅读次数:0
使用python操作word
前言 最近工作中,需要将查询的一段时间的数据可视化,并导出为word格式。由于对word操作不熟悉,查阅了一下相关文档,这里简要记录一下如何使用python操作word。 说明 本代码来源于官方文档(https://python-docx.readthedocs.io/en/latest/),这里对 ...
分类:编程语言   时间:2021-03-06 14:15:46    阅读次数:0
Python-提高
阅读目录 一.GIL(全局解释器锁) GIL面试题如下 描述Python GIL的概念, 以及它对python多线程的影响?编写一个多线程抓取网页的程序,并阐明多线程抓取程序是否可比单线程性能有提升,并解释原因。 Guido的声明:http://www.artima.com/forums/flat. ...
分类:编程语言   时间:2021-03-06 14:14:42    阅读次数:0
多测师肖sir_高级金牌讲师__python之模块time格式输出详解
import timeprint(time.strftime('%Y-%m-%d %H:%M:%S')) # 2021-03-0416:08:44%y 两位数的年份表示(00-99)%Y 四位数的年份表示(000-9999)%m 月份(01-12)%d 月内中的一天(0-31)%H 24小时制小时数 ...
分类:编程语言   时间:2021-03-05 13:24:25    阅读次数:0
翻译:《实用的Python编程》03_05_Main_module
目录 | 上一节 (3.4 模块) | 下一节 (3.6 设计讨论) 3.5 主模块 本节介绍主程序(主模块)的概念 主函数 在许多编程语言中,存在一个主函数或者主方法的概念。 // c / c++ int main(int argc, char *argv[]) { ... } // java c ...
分类:编程语言   时间:2021-03-05 13:23:21    阅读次数:0
Python列表等长度分割
1 def list_of_groups(init_list, childern_list_len): 2 ''' 3 :param init_list: 4 :param childern_list_len: 5 :return: 6 ''' 7 list_of_group = zip(*(ite ...
分类:编程语言   时间:2021-03-05 13:23:08    阅读次数:0
python单例的实现
class CCP(object): def __new__(cls, *args, **kwargs): if not hasattr(cls, '_instance'): cls._instance = super(CCP, cls).__new__(cls, *args, **kwargs) ...
分类:编程语言   时间:2021-03-05 13:19:16    阅读次数:0
获取input上传的视频的长度
changeFile: function(ele) { var content = ele var url = URL.createObjectURL(content);//获取录音时长 var audioElement = new Audio(url);//audio也可获取视频的时长 var d ...
分类:Web程序   时间:2021-03-05 13:12:41    阅读次数:0
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!