1、 为什么需要划分 因为: 1.随着业务增加,mapper或者service类越来越多,项目就会越来越臃肿 需要拆分来解决 2.项目代码越来越多,结构或者编译越来越慢 需要拆分来解决 3.有些内容是公共的内容,有很多项目都可以使用 需要公共的模块来解决 4.有些内容,不想让每个人都可以去改 解决方 ...
分类:
其他好文 时间:
2019-12-06 00:23:54
阅读次数:
98
第一种方式:import syssys.stdout.write("请输入:\n")while True: line = sys.stdin.readline() if line == "\n": break else: print(line)第二种方式: import syss_line = sy ...
分类:
其他好文 时间:
2019-12-01 16:58:34
阅读次数:
90
1 """ 2 print(...) 3 print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) 4 5 Prints the values to a stream, or to sys.stdout by default ...
分类:
其他好文 时间:
2019-11-30 21:20:03
阅读次数:
172
nc反弹 当nc没有 e选项的时候 nc 存在 e选项的时候 bash socat 脚本语言: telnet: awk: crontab: 针对交互式不友好 一句话增加用户 useradd newuser;echo "newuser:password"|chpasswd 例:useradd gues ...
分类:
系统相关 时间:
2019-11-29 23:40:31
阅读次数:
102
汉诺塔的非递归实现(栈) 美国学者找的规律:若是偶数,将a、b、c顺时针排列,否则a、c、b排列,然后反复做: (1)最小盘顺时针移动一个 (2)那两个柱子将最小的移动了,空的话直接移 借助堆栈以非递归(循环)方式求解汉诺塔的问题(n, a, b, c),即将N个盘子从起始柱(标记为“a”)通过借助 ...
分类:
其他好文 时间:
2019-11-29 13:05:47
阅读次数:
104
本文借助动态转圈圈的例子展示 import sys import itertools import time import threading class Signal: go = True def spin(msg, signal): write, flush = sys.stdout.write ...
分类:
编程语言 时间:
2019-11-27 10:47:22
阅读次数:
107
UCACO刷题 SUBMIT: /* ID: your_id_here LANG: C++ TASK: test */ 文件:freopen(“file.in", "r", stdin); freopen("file.out", "w", stdout); 除非另外指定,否则运行时间限制为一秒(程序 ...
分类:
其他好文 时间:
2019-11-24 17:31:09
阅读次数:
71
题目:爬取今日头条新闻网的左边侧栏,并且以csv为文件的形式保存 代码: import io import sys import urllib.request import pandas as pd from pyquery import PyQuery as pq sys.stdout = io. ...
分类:
其他好文 时间:
2019-11-23 21:48:50
阅读次数:
55
gcd Little White learned the greatest common divisor, so she plan to solve a problem: given $x, n,$ query $\sum_{a=1}^n\sum_{b=1}^ngcd(x^a?1,x^b?1)$ I ...
分类:
其他好文 时间:
2019-11-23 09:25:53
阅读次数:
97
TCP:传输控制协议(使用情况多于udp) 稳定:保证数据一定能收到 相对UDP会慢一点 web服务器一般都使用TCP(银行转账,稳定比快要重要)TCP通信模型: 在通信之前,必须先等待建立链接 TCP的三次握手:第一次握手:建立连接时,客户端发送SYN(请求同步)包到服务器,并进入SYN_SEN ...
分类:
编程语言 时间:
2019-11-21 21:25:19
阅读次数:
84