背景: 在业务频繁迭代的时候,有时候一个菜单页面对应的后台代码会越来越凌乱,一个方法本来就做A、B事情,后面迭代,变成会做A、B、C、D、E事情,且A、B又细分出a1、a2、a3、a4、b1、b2、b3。一个菜单页开始设计代码时,通常写法都较为面向对象,后面经多个人,可能是不同的人迭代后就越来越面向 ...
分类:
其他好文 时间:
2021-07-02 16:24:07
阅读次数:
0
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;usi ...
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;usi ...
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u ...
官方链接 https://docs.python.org/zh-cn/3/ 目录 完整目录地址: https://docs.python.org/zh-cn/3/contents.html Python 教程 虚拟环境和包 12.1. 概述 ...
分类:
编程语言 时间:
2021-07-02 16:14:06
阅读次数:
0
这是一种开发高质量软件的方法是为每一个函数开发测试代码,并且在开发过程中经常运行这些测试代码。 doctest模块提供一个工具,这个工具可以扫描一个模块并验证确认内嵌到程序中的文档字符串测试代码。测试构造与剪切一个典型的调用并同它的结果粘贴到文档字符串中一样简单。通过用户提供的例子,它发展了文档,允 ...
分类:
编程语言 时间:
2021-07-02 16:11:22
阅读次数:
0
LoadFile "c:/python35/python35.dll"LoadModule wsgi_module "c:/python35/lib/site-packages/mod_wsgi/server/mod_wsgi.cp35-win_amd64.pyd"WSGIPythonHome "c ...
分类:
编程语言 时间:
2021-07-02 16:07:29
阅读次数:
0
遇到这个之后,在网上搜了一下。但都不能解决我的问题。 因为之前的图片都是能正常显示的。查看之前的代码发现问题所在 在图片名称中出现中英文一起用的情况下在真机调试中图片不会显示 <image src="/assets/images/system/banner图.png"></image> <image ...
分类:
微信 时间:
2021-07-02 16:03:36
阅读次数:
0
先看代码 using System; using System.Collections.Generic; using System.Threading.Tasks; namespace AsyncStream { class Program { static async Task Main(stri ...
1、面向对象 class: 类: 一个模板、模型 对象、实例: 通过模型制作出来的东西 实例化:制作实例的过程 self :本类对象 私有: 私有方法、私有变量,就是出了类之后就不能调用了 私有方法:方法名前加上"__"可定义为私有方法 私有变量:变量名前加上"__"可定义为私有变量 __init_ ...
分类:
编程语言 时间:
2021-07-02 15:58:19
阅读次数:
0