java 正则 替换

java 正则 替换

只会js,但正则应该是通用的var str = "1399996aa535bb800"str = str.replace((w)1+g,function(a){return "#".repe
Python160
python3 实现约瑟夫环

python3 实现约瑟夫环

#coding=GBK class Node():     def __init__(self,value,next=None):         self.value = value         self.next =
Python170
JAVA编程 完全数

JAVA编程 完全数

public class PerfectNumber{private static String[] isPrefectnumber(int n){int sum=0StringBuffer sBuffer = new String
Python280
python3 实现约瑟夫环

python3 实现约瑟夫环

#coding=GBK class Node():     def __init__(self,value,next=None):         self.value = value         self.next =
Python220
Java创建一个复数类

Java创建一个复数类

package tablepublic class Complex{double realdouble imaginarypublic static final Complex ZERO = new Complex (0, 0)pu
Python220
c语言蛇形填阵

c语言蛇形填阵

#include&ltstdio.h&gt#define MAXN 50int a[MAXN][MAXN]int main(){    int n, x, y, tot = 0    scanf("%d"
Python150