上一页 1 2 3 4 5 6 7 8 9 10 ··· 28 下一页
摘要: FROM 基础镜像,FROM 命令必须是 Dockerfile 的首个命令 也就是继承哪个镜像 LABEL 为镜像生成元数据标签信息 原有指令 MAINTAINER 已经放弃使用,用 LABEL maintainer="你的邮箱" 替代 USER 指定运行容器时的用户名或 UID,后续 RUN 也会 阅读全文
posted @ 2022-05-25 10:05 未来可期_Durant 阅读(375) 评论(0) 推荐(0) 编辑
摘要: apk官网命令 阅读全文
posted @ 2022-05-25 09:13 未来可期_Durant 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 代码实现: from typing import List class Solution: def maximunProduct(self, nums: List[int]) -> int: # 默认是升序 nums.sort() length = len(nums) if length == 3: 阅读全文
posted @ 2022-04-23 23:22 未来可期_Durant 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 代码: def long_num(str): max_list = [] for i in range(len(str)): new_list = [] for j in range(i+1,len(str)): if str[j].isdigit(): new_list.append(str[j] 阅读全文
posted @ 2022-04-20 12:43 未来可期_Durant 阅读(702) 评论(0) 推荐(1) 编辑
摘要: 代码: def count_number(target_str): d = {} for i in target_str: if i in d: d[i] += 1 else: d[i] = 1 return d 测试: s = "jgiwejgiwiwrijhiwrihowWrohwrih" pr 阅读全文
posted @ 2022-04-20 12:18 未来可期_Durant 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 获取字符串中全部的回文子串 代码: def get_all_Palindrome(item:str): ''' 获取所有的回文字符串 ''' #定义列表,存放所有的回文字符串 res = [] for i in range(len(item)): for j in range(i + 1, len( 阅读全文
posted @ 2022-04-19 16:45 未来可期_Durant 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 获取列表中最长的字符号串 代码: import numpy as np# 定义获取列表中最长元素的函数def get_longest_element(item_list: list): # 计算list每个元素的长度 len_list = map(len, item_list) # 实例化 li = 阅读全文
posted @ 2022-04-19 16:35 未来可期_Durant 阅读(398) 评论(0) 推荐(0) 编辑
摘要: filter 过滤 filter() 函数用于过滤序列,过滤掉不符合条件的元素,返回由符合条件元素组成的新列表。 语法:filter(function, iterable) 参数:function(判断函数),iterable (可迭代对象) 返回值: Python 2.x 返回列表 Python 阅读全文
posted @ 2022-04-18 09:41 未来可期_Durant 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 用的地方不一样 where可以用于select、update、delete和insert into values(select * from table where ..)语句中。 having只能用于select语句中 执行的顺序不一样 where的搜索条件是在执行语句进行分组之前应用 havin 阅读全文
posted @ 2022-04-17 11:42 未来可期_Durant 阅读(786) 评论(0) 推荐(0) 编辑
摘要: mysql查询今天、昨天、7天、近30天、本月、上一月数据 今天 select * from 表名 where to_days(时间字段名) = to_days(now()); 昨天 SELECT * FROM 表名 WHERE TO_DAYS( NOW( ) ) - TO_DAYS( 时间字段名) 阅读全文
posted @ 2022-04-15 14:48 未来可期_Durant 阅读(205) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 28 下一页
点击右上角即可分享
微信分享提示