更多 react-router提供了三种方式来实现路由,并没有默认的路由,需要在声明路由的时候,显式指定所使用的路由。 //v1.x <Router/> //v2.0.0 // hash history import { hashHistory } from 'react-router' <Rout ...
分类:
其他好文 时间:
2021-06-02 13:31:44
阅读次数:
0
css modules与antd一起使用时,antd样式不生效解决方案 最近在做历史项目的依赖升级,历史依赖版本: "react": "^15.5.4", "react-dom": "^15.5.4", "antd": "^2.10.1", "autoprefixer": "6.7.2", "bab ...
分类:
Web程序 时间:
2021-06-02 13:26:27
阅读次数:
0
二维列表初始化 L=[[0]*n]*m方式初始化 初始化一个 \(m\times n\) 的二维列表,初值全为0 L=[[0]*3]*2 print("初始的:",L) #赋值 for i in range(2): for j in range(3): L[i][j]=i+j print("赋值后: ...
分类:
编程语言 时间:
2021-06-02 12:38:38
阅读次数:
0
#!/usr/bin/python # -*- coding:utf-8 -*- import time # 格式化成2016-03-20 11:45:39形式 nowTime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) print( ...
分类:
编程语言 时间:
2021-06-02 12:30:27
阅读次数:
0
#include <stdio.h> #include <stdlib.h> #include <time.h> #define max(a, b) ((a) > (b) ? (a) : (b)) typedef struct Node { int key, height; struct Node ...
分类:
其他好文 时间:
2021-06-02 12:24:05
阅读次数:
0
HBuild X 终端无法使用,无法输入,解决方法 打开HBuild X 的安装文件夹 打开如下路径:plugins\builtincef3terminal\script 打开main.js 文件 if(isWin){ shell = 'C:\\Windows\\System32\\WindowsP ...
分类:
其他好文 时间:
2021-06-02 12:14:47
阅读次数:
0
import os import time import smtplib from email.mime.text import MIMEText from email.header import Header sender = '2575125xxx@qq.com' receivers = ['1 ...
分类:
编程语言 时间:
2021-06-02 11:42:46
阅读次数:
0
查空行 awk '/^$/{print NR}' demo1.txt 求某一列的和 awk '{sum+=$2} END {print "求和:"sum}' demo2.txt 数字排序 sort -n -t ' ' -k 2 demo3.txt sort -t ' ' -k 2nr demo3.t ...
分类:
系统相关 时间:
2021-06-02 11:35:11
阅读次数:
0
#!/usr/bin/env python # encoding: utf-8 import datetime import os import shutil import subprocess import time import zipfile # 数据库用户名 db_user = "root" ...
分类:
数据库 时间:
2021-06-02 11:05:03
阅读次数:
0
语法示例: while 条件为真 do echo ok done #!/bin/bash while true do echo ok done while循环数字 #!/bin/bash a=1 b=9 while [ $a -lt 10 ] do sum=$((a + b)) echo $a + ...
分类:
系统相关 时间:
2021-06-02 11:02:44
阅读次数:
0