08 2020 档案

摘要:Python的创始人应该是个特别尊敬长辈和祖辈的人。 阅读全文
posted @ 2020-08-22 18:46 挨特·李 阅读(122) 评论(0) 推荐(0) 编辑
摘要:Task description A DNA sequence can be represented as a string consisting of the letters A, C, G and T, which correspond to the types of successive nu 阅读全文
posted @ 2020-08-12 21:32 挨特·李 阅读(119) 评论(0) 推荐(0) 编辑
摘要:def solution(A, B, K): data_list = range(B+1)[A:] count=0 for i in data_list: if i%K == 0: count+=1 return count pass 阅读全文
posted @ 2020-08-12 16:21 挨特·李 阅读(109) 评论(0) 推荐(0) 编辑
摘要:最近发现公司的域控制器和域内的计算机时间与internet上的时间不同步,老是慢几分钟。解决办法: 设置NTP服务器,和外网时间同步。以下是设置步骤: 修改PDC主域控制器上同步Internet时间服务器: 1.主域控制器修改运行gpedit.msc 打开本地策略组(Winserver2012和20 阅读全文
posted @ 2020-08-10 10:13 挨特·李 阅读(11129) 评论(0) 推荐(0) 编辑
摘要:def solution(A): # write your code in Python 3.6 if max(A) <1: return 1 k=max(A)+1 B=set(range(1,k)) #print(B) C=B.difference(set(A)) #print(C) if C: 阅读全文
posted @ 2020-08-08 20:37 挨特·李 阅读(184) 评论(0) 推荐(0) 编辑
摘要:def solution(N, A): # N个计数器,所有计数器都初始化为0 # A数组含有M若干个元素 # 操作1、当A中的元素X值 1<=X<=N,则第X个计数器+1 # 操作2、当A中的元素等于N+1时,则所有的计数器置为计数器的最大值 B=[] i=1 while i <= N: B.ap 阅读全文
posted @ 2020-08-08 19:34 挨特·李 阅读(121) 评论(0) 推荐(0) 编辑
摘要:分析:# 1、青蛙从1跳到X+1# 2、只有1到X的数字在某一个索引的位置填满的时候,取这个索引的值,如果一直取不到就返回Falsedef solution(X, A): B=[] K=-1 for i in A: B.append(i) K+=1 C=set(B) if len(C)==X: re 阅读全文
posted @ 2020-08-08 18:50 挨特·李 阅读(219) 评论(0) 推荐(0) 编辑
摘要:def solution(A): # write your code in Python 3.6 result = 100000 P = 1 while P < len(A): B=sum(A[0:P]) C=sum(A[P:]) result = min(result,abs(B-C)) P += 阅读全文
posted @ 2020-08-05 15:52 挨特·李 阅读(74) 评论(0) 推荐(0) 编辑
摘要:def solution(X, Y, D): # write your code in Python 3.6 if X==Y: n=0 else: n=(Y-X)//D+1 return n pass 阅读全文
posted @ 2020-08-03 10:58 挨特·李 阅读(177) 评论(0) 推荐(0) 编辑
摘要:当直接使用key对字典取值,如果key不存在会报错 使用dict.get()函数取值,如果key不存则返回空置,消除了报错的bug. 还可使用get('Key','返回值')当取值失败时返回特定的值。 阅读全文
posted @ 2020-08-03 08:59 挨特·李 阅读(370) 评论(0) 推荐(0) 编辑
摘要:def solution(A): # write your code in Python 3.6 for item in A: if A.count(item) == 1 : return item # 只需要找到count为1的唯一一个数字就可以了,其它的都不用管 阅读全文
posted @ 2020-08-03 08:41 挨特·李 阅读(138) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示