搜索结果
查询Tags标签: position,共有 248条记录-
【思特奇杯·云上蓝桥-算法集训营】第二周
带分数 def add_grades(n):i = 1time = 0while i < n-1:grades = n - ifor x in range(1,1000):denominator = xnumerator = x * (n - i)ls = []for j in str(i):ls.append(int(j))for j in str(denominator):ls.append(int(j))for j in str(numerator):ls.append(int(…
2022/1/15 11:33:25 人评论 次浏览 -
【思特奇杯·云上蓝桥-算法集训营】第二周
带分数 def add_grades(n):i = 1time = 0while i < n-1:grades = n - ifor x in range(1,1000):denominator = xnumerator = x * (n - i)ls = []for j in str(i):ls.append(int(j))for j in str(denominator):ls.append(int(j))for j in str(numerator):ls.append(int(…
2022/1/15 11:33:25 人评论 次浏览 -
静态百度页面
ps:css属性的值来自于百度代码 (某些地方过于简化 <!DOCTYPE html> <html lang="en"> <head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="…
2022/1/9 23:37:53 人评论 次浏览 -
静态百度页面
ps:css属性的值来自于百度代码 (某些地方过于简化 <!DOCTYPE html> <html lang="en"> <head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="…
2022/1/9 23:37:53 人评论 次浏览 -
CSS3 输入文字特效
<!DOCTYPE html> <html><head><meta charset="utf-8" /><title></title><style type="text/css">* {margin: 0;padding: 0;}body {position: relative;min-height: 100vh;background: #000;}.typewriting …
2022/1/8 23:34:10 人评论 次浏览 -
CSS3 输入文字特效
<!DOCTYPE html> <html><head><meta charset="utf-8" /><title></title><style type="text/css">* {margin: 0;padding: 0;}body {position: relative;min-height: 100vh;background: #000;}.typewriting …
2022/1/8 23:34:10 人评论 次浏览 -
redis使用scan实现keys*
【1】直接上脚本 写的比较简单、后续可以自行优化、加参数; 如,把密码、端口、数量 、host 等信息全部参数化 变量化#!/bin/bash source /etc/profile next_position=0 while [ 1 ] dokey_info=`redis-cli -a bfengzlgdredis2017 scan ${next_position} match upgradeGi…
2021/12/31 19:14:36 人评论 次浏览 -
redis使用scan实现keys*
【1】直接上脚本 写的比较简单、后续可以自行优化、加参数; 如,把密码、端口、数量 、host 等信息全部参数化 变量化#!/bin/bash source /etc/profile next_position=0 while [ 1 ] dokey_info=`redis-cli -a bfengzlgdredis2017 scan ${next_position} match upgradeGi…
2021/12/31 19:14:36 人评论 次浏览 -
python 读取csv文件 和 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position
python 读取csv文件,无法读取第一列的数据,不知道为什么。以后有时间再来研究import os import csv import jsonfw = open("data_json.py", "w") index = 0 with open("log_test/tests/data.csv", "r", newline=, encoding= uu…
2021/12/25 22:07:04 人评论 次浏览 -
python 读取csv文件 和 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position
python 读取csv文件,无法读取第一列的数据,不知道为什么。以后有时间再来研究import os import csv import jsonfw = open("data_json.py", "w") index = 0 with open("log_test/tests/data.csv", "r", newline=, encoding= uu…
2021/12/25 22:07:04 人评论 次浏览 -
查找排序算法
#无序表查找 def sequentialSearch(alist , item):pos = 0found =Falsewhile pos < len(alist) and not found :if alist[pos] == item:found = Trueelse:pos = pos+1return found#有序表查找 def orderSequentialSearch(alist,item):pos =0found =Falsestop = Falsew…
2021/12/25 14:37:05 人评论 次浏览 -
查找排序算法
#无序表查找 def sequentialSearch(alist , item):pos = 0found =Falsewhile pos < len(alist) and not found :if alist[pos] == item:found = Trueelse:pos = pos+1return found#有序表查找 def orderSequentialSearch(alist,item):pos =0found =Falsestop = Falsew…
2021/12/25 14:37:05 人评论 次浏览 -
【CSS】让图片在高宽固定的div里水平垂直都居中的三种办法
效果: 实现一:绝对定位加精算<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>圆角Img示例</title><style type="text/css">.parentDiv{ width:200px;height:400px;background-color:yell…
2021/12/20 23:24:42 人评论 次浏览 -
【CSS】让图片在高宽固定的div里水平垂直都居中的三种办法
效果: 实现一:绝对定位加精算<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>圆角Img示例</title><style type="text/css">.parentDiv{ width:200px;height:400px;background-color:yell…
2021/12/20 23:24:42 人评论 次浏览 -
Ruby‘s Adventrue游戏制作笔记(九)Unity添加敌人
Rubys Adventrue游戏制作笔记(九)Unity添加敌人 前言一、编辑敌人二、编辑敌人脚本系列链接前言 本文章是我学习Unity官方项目项目所做笔记,作为学习Unity的游戏笔记,在最后一章会发出源码,如果等不及可以直接看源码,里面也有很多注释相关,话不多说,让Ruby动起来!…
2021/12/10 22:19:57 人评论 次浏览