摘要: 效果图: 第一步: 第二步:页面定制CSS代码 #loading{bottom:0;left:0;position:fixed;right:0;top:0;z-index:9999;background-color:#f4f5f5;pointer-events:none;}.loader-inner 阅读全文
posted @ 2022-07-19 16:42 xxxyz 阅读(111) 评论(0) 推荐(0)
摘要: 在这个实验我们会学习 Collections 模块。这个模块实现了一些很好的数据结构,它们能帮助你解决各种实际问题。 这是如何导入这个模块,现在我们来看看其中的一些类。 Counter 是一个有助于 hashable 对象计数的 dict 子类。它是一个无序的集合,其中 hashable 对象的元素 阅读全文
posted @ 2022-07-19 16:26 xxxyz 阅读(116) 评论(0) 推荐(0)
摘要: 首先创建一个文件:~/.pythonrc ,文件内写入如下内容: import rlcompleter, readline readline.parse_and_bind('tab: complete') history_file = os.path.expanduser('~/.python_hi 阅读全文
posted @ 2022-07-19 16:00 xxxyz 阅读(34) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python3 class Animal(): def __init__(self,say,run): self.say = say self.run = run def getanimal(self): return "这个动物叫起来:"+self.say+"\r\n 阅读全文
posted @ 2022-07-19 15:18 xxxyz 阅读(25) 评论(0) 推荐(0)