public static void main(String[] args) {
String week_year_flag = "第1周(01-02至01-08)";
int index = week_year_flag.indexOf("周");
String selfPath = week_year_flag.substring(1, index);
System.out.println(selfPath);
System.out.close();
}
---------------------------------------------------------------------------
输出结果是:1
取的是第1周(01-02至01-08)中的 1