会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132499个问题
Python 全系列/第五阶段:数据库编程/mysql的使用 23568楼
JAVA 全系列/第一阶段:JAVA 快速入门/变量、数据类型、运算符 23569楼
JAVA 全系列/第一阶段:JAVA 快速入门/变量、数据类型、运算符 23570楼

4.1.1BootStrap布局.zip

bootstrap-5.0.0-beta2-dist.zip

老师,我在官方下载的,在移动端不是100%,怎么回事?

WEB前端全系列/第四阶段:BootStrap框架模块/BootStrap4基础 23572楼

class Node():
    def __init__(self, value = None, next = None):
        self.value = value
        self.next = next

    def __str__(self):
        return 'Node:{}'.format(self.value)


class LinkedList():
    def __init__(self):
        self.root = Node()
        self.next = None
        self.size = 0

    def append_end(self, value):  # 链表的后边加数据
        node = Node(value)
        if not self.root.next:
            self.root.next = node
        else:
            self.next.next = node
        self.next = node
        self.size += 1

    def append_first(self, value):
        node = Node(value)
        if not self.root.next:
            self.root.next = node
        else:
            temp = self.root.next
            self.root.next = node
            node.next = temp
        self.size += 1

    def __iter__(self):
        current = self.root.next
        while current is not self.next:
            yield current
            current = current.next
        yield current


if __name__ == '__main__':
    link = LinkedList()
    link.append_end('悟空')
    link.append_end('八戒')
    link.append_first('师傅')
    for i in link:
        print(i)

老师请问,视频中对框红线的位置之前加了个if判断,我感觉没有必要加,运行结果也是好的,不知道我的理解有没有问题。

image.png

人工智能/第二十六阶段:算法与数据结构/算法与数据结构 23573楼
Python 全系列/第一阶段:Python入门/编程基本概念 23575楼
JAVA 全系列/第八阶段:Linux入门到实战/Maven 23576楼
JAVA 全系列/第十八阶段:亿级高并发电商项目_架构/编码(旧)/电商:基于SpringSession实现登录系统 23577楼
JAVA 全系列/第八阶段:Linux入门到实战/Maven 23579楼
Python 全系列/第十二阶段:Python_Django3框架/Django进阶 23580楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园
网站维护:百战汇智(北京)科技有限公司
京公网安备 11011402011233号    京ICP备18060230号-3    营业执照    经营许可证:京B2-20212637