码迷,mamicode.com
首页 >  
搜索关键字:nginx access python 统计 访问量    ( 194898个结果
LeetCode | 0230. 二叉搜索树中第K小的元素【Python】
Problem LeetCode Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Example 1: Input: root = [3,1,4,null ...
分类:编程语言   时间:2021-01-11 10:45:32    阅读次数:0
python中property的使用
1. property的作用 property是一个类,可以把一个方法当做属性进行使用,这样做可以简化代码使用。 实际上就是装饰类中属性的getter setter方法,使得属性可以通过 对象.属性 的方式获取或设置 使用property的两种方式 装饰器方式 类属性方式 2. 装饰器方式 @pro ...
分类:编程语言   时间:2021-01-11 10:43:38    阅读次数:0
报错:[stack Error: Can't find Python executable "python"] vue项目npm install
背景:gitee上下载的开源vue项目,本地部署。执行【npm install】时,报错Error: Can't find Python executable "python", you can set the PYTHON env variable。 解决: 网上提供的一个解决办法:管理员身份打开 ...
分类:编程语言   时间:2021-01-11 10:40:56    阅读次数:0
直播4-打印o的位置
# 打印每个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
童年的记忆——如何用python写一个俄罗斯方块小游戏!
谈到记忆里的小游戏,俄罗斯方块是大家一定会想到的一款游戏,自己写出来的应该玩起来更有感觉,然后就写了一个俄罗斯方块的游戏给大家分享一下这个游戏的源码 先用python创建一个py文件 定义这次程序所需要的类 import sys import time import pygame from pyga ...
分类:编程语言   时间:2021-01-11 10:37:11    阅读次数:0
xdebug 远程调试
下面的链接下载对应版本的xdebug. https://xdebug.org/download/historical 源码安装:https://xdebug.org/docs/install#linux Installation From Source Obtain You can download ...
分类:其他好文   时间:2021-01-11 10:33:04    阅读次数:0
python绘图
一个案例 import matplotlib.pyplot as plt # 数据处理 data = [ ['01/01','0','0'], ['01/02','1','0'], ['01/03','4','13'], ['01/04','14','30'], ['01/05','20','43' ...
分类:编程语言   时间:2021-01-08 11:48:33    阅读次数:0
正则表达式
正则表达式是一个特殊的字符序列,它能帮助你方便的检查一个字符串是否与某种模式匹配。 Python 自1.5版本起增加了re 模块,它提供 Perl 风格的正则表达式模式。 re 模块使 Python 语言拥有全部的正则表达式功能。 compile 函数根据一个模式字符串和可选的标志参数生成一个正则表 ...
分类:其他好文   时间:2021-01-08 11:41:45    阅读次数:0
Python基础,,小题目
打印1 ~ 100 的奇数和偶数和 sum=0 for i in range(1,100,2): print(i) sum=sum+i print('奇数和为:%s'%(sum)) sum=0 for i in range(0,101,2): print(i) sum=sum+i print('偶数 ...
分类:编程语言   时间:2021-01-08 11:39:17    阅读次数:0
NGINX静态文件模板
server { listen 80; listen 443 ssl http2; server_name www.baidu.com; charset utf-8; fastcgi_intercept_errors on; include filter.forbid; error_page 404 ...
分类:其他好文   时间:2021-01-08 11:29:22    阅读次数:0
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!