首页 > 新文章
  • 移动端丨-webkit-overflow-scrolling:touch属性导致页面卡住 is a project mainly written in , based on the .起因   起因-webkit-overflow-scrolling问题解决方案: 方案一方案二思考为什么会出现这个问题总结  故事的起因是,在一个多列表的页面上,页面在iOS11,跟iOS10中会发生页面卡住,不能进行滚动。 然后就怀疑是自己的样式写的出了问题,就一直排查定位元素的样式,怎么都找不到问题所在。 但还是本着追...

  • BZOJ2275[Coci2010]HRPA——斐波那契博弈 is a project mainly written in , based on the .题目描述 N个石子,A和B轮流取,A先。每个人每次最少取一个,最多不超过上一个人的个数的2倍。取到最后一个石子的人胜出,如果A要有必胜策略,第一次他至少要取多少个。 输入 第一行给出数字N,N<=10^15.第二行N个数字 输出 如题 样例输入 4 样例输出 1 根据齐肯多夫定理,任何一个正整数都能由若干个不连续的斐波那...

  • COOKIE操作 is a project mainly written in , based on the .import scrapyclass CookiedemoSpider(scrapy.Spider):name = 'cookiedemo'# allowed_domains = ['www.douban.com']start_urls = ['https://www.douban.com/accounts/login/']def...

  • Python Django 学习笔记 is a project mainly written in , based on the .* python版本和Django对应的关系:    * Django2.0系列之后,不支持python2.x系列 * 安装:   pycharm直接可以搜索安装,可以省略手工安装的麻烦   需要手动安装:pip install django   *  转载于:https://www.cnblogs.com/chenadong/p...

  • 类方法 is a project mainly written in , based on the .class Person:# 实例方法def chi(self):print("人会吃")@classmethod # 装饰器, 此时这个方法是一个类方法def he(cls): # 此时接收到的cls是类名# print(cls)print("人会喝")# 用对象访问 # p = Person() # p.he() # 在调用类...

  • Flutter中集成Font Awesome is a project mainly written in , based on the .1、添加引用 在 pubspec.yaml文件中,加入 font awesome的引用   1 dependencies: 2 flutter: 3 sdk: flutter 4 5 # The following adds the Cupertino Icons font to your applica...

  • Shell脚本中判断上一个命令是否执行成功 is a project mainly written in , based on the .2018-12-21   shell中使用符号“$?”来显示上一条命令执行的返回值,如果为0则代表执行成功,其他表示失败。结合if-else语句实现判断上一个命令是否执行成功 示例如下: if [ $? -ne 0 ]; thenecho "failed" elseecho "succeed" fi或者: if [ $? -eq 0...

  • 性能测试八:jmeter进阶之beanshell is a project mainly written in , based on the .    * BeanShell是一种完全符合Java语法规范的脚本语言,并且又拥有自己的一些语法和方法; * BeanShell是一种松散类型的脚本语言(这点和JS类似); * BeanShell是用Java写成的,一个小型的、免费的、可以下载的、嵌入式的Java源代码解释器,具有对象脚本语言特性,非常精简的解释器jar文件大小为17...

  • 汇编语言第五到八章总结 is a project mainly written in , based on the .第五章 [BX]和loop 1.内存单元间接表示: [bx] mov  dl, [0];  dl  ←  ((ds)×16 + 0) mov  bx, 0 mov  dl, [bx];  dl  ←  ((ds)×16 + (bx)) 可以使用bx间接访问内存单元。默认,段地址在ds。   2.loop指令 (1) 语法格式    ...

  • Python3模块Crypto改为pycryptodome is a project mainly written in , based on the .安装:  # 安装方式1: pip3 install pycryptodome# 安装方式2: pip3 install -i https://pypi.douban.com/simple pycryptodome from Crypto.PublicKey import RSA from Crypto.Signature imp...

  • 注解--python库--matplotlib is a project mainly written in , based on the .import matplotlib.pyplot as plt import numpy as npx = np.linspace(-3, 3, 50) y = 2*x + 1plt.figure(num=1, figsize=(8, 5),) plt.plot(x, y,)ax = plt.gca() ax.spines['rig...

  • 傻傻分不清的javascript运行机制 is a project mainly written in , based on the .学习到javascript的运行机制时,有几个概念经常出现在各种文章中且容易混淆。Execution Context(执行环境或执行上下文),Context Stack (执行栈),Variable Object(VO: 变量对象),Active Object(AO: 活动对象),LexicalEnvironment(词法环境),V...

  • Nomn文件分析 is a project mainly written in , based on the .#encoding=gbk import os import re import math from os import path''' 手动输入文件nmon文件路径,要截取的开始时间,结束时间 '''rootdir='E:\pylianxi\ceshi' #input("请输入文件路径:") start_time="14...

  • Python的进程 is a project mainly written in , based on the .多进程概念:      由于GIL的存在,python中的多线程其实并不是真正的多线程,如果想要充分地使用多核CPU的资源,在python中大部分情况需要使用多进程。python提供了非常好用的多线程包(multiprocessing),只需要定义一个函数,Python会完成其他所有事情。借助这个包,可以轻松完成从单进程到并发执行的转...

  • 从应用到内核查接口超时(中) is a project mainly written in , based on the .应用复现 接着上文 从应用到内核查接口超时(上) 继续排查导致接口超时的原因。 转载随意,文章会持续修订,请注明来源地址:https://zhenbianshu.github.io 。 Jdk 的 native 方法当然不是终点,虽然发现 Jdk、docker、操作系统 Bug 的可能性极小,但再往底层查却很可能发现一些常见的配置错误...

  • 【做题】SRM701 Div1 Hard - FibonacciStringSum——数学和式&矩阵快速幂 is a project mainly written in , based on the .原文链接 https://www.cnblogs.com/cly-none/p/SRM701Div1C.html 题意:定义"Fibonacci string"为没有连续1的01串。现在,给出(a,b),定义一个"Fibonacci string"的权值为(x^a y^b),其中(x)为0的个数,(y)为1的个数。...

  • 云计算时代的数据库运行 is a project mainly written in , based on the .云计算时代的高可用数据库是可扩展、容错且与任何私有云或公共云兼容的数据库实例。它们旨在提供业务连续性,而不会因任何类型的硬件或网络故障而导致用户体验的影响。其核心设计原则是消除任何单点故障,并提供平稳的故障转移体验。 公共云和私有云使企业能够摆脱容易出错的传统架构,并运行具有可靠性为5个9和6个9的应用程序。业务应用程序可以按需、即...

  • 前端优化系列之一:dns预获取 dns-prefetch 提升页面载入速度 is a project mainly written in , based on the .问题:怎么做到dns域解析? 用于优化网站页面的图片 问题:怎么提升网站性能? dns域解析,是提升网站的一个办法。 DNS Prefetch,即DNS预获取,是前端优化的一部分。 一般来说,在前端优化中与 DNS 有关的有两点:  一.  是减少DNS的请求次数 二. 是进行DNS预获取 目前大多数浏览器已经支持此属性,支...

  • Python(27)_字符串的常用的方法2 is a project mainly written in , based on the .#-*-coding:utf-8-*- ''' 字符串操作 ''' s = " bowen " # 从右边删 s1 = s.rstrip() print(len(s1)) s2 = s1.lstrip() print(len(s2))  从右边删除元素,从左边删除元素,这个在以后项目中经常用到 · 二、计算个数 #-*-cod...

  • Kotlin 练习 is a project mainly written in , based on the .kotlin基础语法   samychen 关注 2017.05.28 17:07* 字数 1224 阅读 2434评论 0喜欢 6 每种编程语言都有一定的语法、语义和执行顺序(同步),学习一种新语言也都是从这三者出发,下面我们就只针对kotlin的语法来做简单的介绍。 Kotlin有自己的特性不该被Java的思维所束缚。...