提瓦特认证干饭师
提瓦特认证干饭师
全部文章
题解
归档
标签
去牛客网
登录
/
注册
提瓦特认证干饭师的博客
全部文章
/ 题解
(共6篇)
题解 | #判断两个IP是否属于同一子网#
while True: try: string1=input() string2=input() string3=input() Netmask = string1.split(".") Ip1 = string...
Python3
2022-02-03
0
324
题解 | #从单向链表中删除指定值的节点#
class Node(object): def __init__(self,data,next=None): self.data=data self.next=next class LinkList(object): def __init__(sel...
Python3
2022-02-02
0
544
题解 | #输出单向链表中倒数第k个结点#
class Node(object): def __init__(self,data, next = None): self.data = data self.next = next class LinkList(object): def __ini...
Python3
2022-02-02
29
2836
题解 | #计算日期到天数转换#
def ptyear(mm,dd): year = {"1": "31", "2": "28", "3": "31", "4": "30", "5": "31", "6": "30", "7": "31", "8": "31", "9": "30","10": "31", "11": "30...
Python3
2022-01-31
0
357
题解 | #记票统计#
while True: try: max=int(input())+1 shuzhu1=[([1]*max)for i in range(max)] c=max+1 for i in range(1,max): ...
Python3
2022-01-31
0
321
题解 | #找出字符串中第一个只出现一次的字符#
while True: try: string=input() str_c="" str_r=[] for i in string: if(str_c.find(i)==-1): ...
Python3
2022-01-30
0
292