2023年2月13日
摘要: 1,modal.js class Modal { constructor(options) { this.options = Object.assign( { title: "标题", showClose: true, content: "", showCancel: true, showConfi 阅读全文
posted @ 2023-02-13 13:20 Zoie_ting 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1,messgae.js function messageTip(msg, duration = 3000) { let elem = document.createElement('div'); elem.className = "errorTip"; elem.innerText = msg; 阅读全文
posted @ 2023-02-13 11:54 Zoie_ting 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 1,request.js function commonAjax(method, url, params, done) { // 统一转换为大写便于后续判断 method = method.toUpperCase() // 对象形式的参数转换为 urlencoded 格式 let pairs = [ 阅读全文
posted @ 2023-02-13 11:45 Zoie_ting 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1,页面包含下拉框、复选框、按钮、表格(固定表头) <html lang=""> <head> <link rel="stylesheet" type="text/css" href="../css/elementUiIndex.css"> <link rel="stylesheet" type=" 阅读全文
posted @ 2023-02-13 10:37 Zoie_ting 阅读(203) 评论(0) 推荐(0) 编辑
  2023年2月10日
摘要: 1,新建web项目 盘点需要的目录:html页面,css样式,js功能,image图片资源,项目入口文件index.html 2,我们的页面为简单的三部分,如下图所示 index.html为项目入口文件,由于头部是菜单和一些用户的操作,底部是版权和一些用户信息,只有主体部分内容在变化,所以我将主题部 阅读全文
posted @ 2023-02-10 17:23 Zoie_ting 阅读(114) 评论(0) 推荐(0) 编辑
  2023年2月6日
摘要: anonymousSurvey.py class AnonymousSurvey(): """收集匿名调查问卷的答案""" def __init__(self, question): """存储一个问题,并为存储答案做准备""" self.question = question self.respo 阅读全文
posted @ 2023-02-06 17:09 Zoie_ting 阅读(26) 评论(0) 推荐(0) 编辑
摘要: import json print(" 读取文件 ") # 关键字with 在不再需要访问文件后将其关闭,让Python负责妥善地打开和关闭文件 with open('pi_digits.txt') as file_object: contents = file_object.read() prin 阅读全文
posted @ 2023-02-06 17:06 Zoie_ting 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 类名应采用驼峰命名法,即将类名中的每个单词的首字母都大写,而不使用下划线。实例名和模块名都采用小写格式,并在单词之间加上下划线。 对于每个类,都应紧跟在类定义后面包含一个文档字符串。这种文档字符串简要地描述类的功能,并遵循编写函数的文档字符串时采用的格式约定。每个模块也都应包含一个文档字符串,对其中 阅读全文
posted @ 2023-02-06 11:34 Zoie_ting 阅读(12) 评论(0) 推荐(0) 编辑
摘要: pizza.py def make_pizzas(size, *toppings): """概述要制作的比萨""" print('size:' + size) print(toppings) def test_one(): print('one') def test_two(): print('tw 阅读全文
posted @ 2023-02-06 11:32 Zoie_ting 阅读(17) 评论(0) 推荐(0) 编辑
摘要: # 函数input() 让程序暂停运行,等待用户输入一些文本。 # 获取用户输入后,Python将其存储在一个变量中,以方便你使用 message = input("Tell me something, and I will repeat it back to you: ") print(messa 阅读全文
posted @ 2023-02-06 11:31 Zoie_ting 阅读(33) 评论(0) 推荐(0) 编辑