This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package net.uxss.b1ueb0ne.javaparse; | |
| import ... | |
| @Component | |
| public class MethodDeclare { | |
| public JSONArray declareParseCode(String code) { | |
| JSONArray declareJsonArray = new JSONArray(); | |
| CompilationUnit compilationUnit = JavaParser.parse(code); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datetime import datetime, timedelta | |
| t = datetime(2012, 1, 1, 17, 0, 0) | |
| while t <datetime(2012, 1, 1, 23, 59, 0): | |
| print(str(t.time()).replace(':', '')) | |
| t = t + timedelta(seconds=1) | |
| eg. | |
| 170013 | |
| 170014 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.lang.management.ManagementFactory; | |
| import java.lang.management.RuntimeMXBean; | |
| public class JavaPid { | |
| public static void main(String[] args) { | |
| RuntimeMXBean runtime = ManagementFactory.getRuntimeMXBean(); | |
| String name = runtime.getName(); | |
| System.out.println("当前进程的标识为:"+name); | |
| int index = name.indexOf("@"); | |
| if (index != -1) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> t= r'\xe6\x97\xa0\xe6\xb3\x95\xe5\x8a\xa0\xe8\xbd\xbd\xe6\x8e\xa7\xe5\x88\xb6\xe5\x99\xa8:Index.php' | |
| >>> print (bytes(t).decode('utf-8')) | |
| 无法加载控制器:Index.php | |
| >>> t= b'\xe6\x97\xa0\xe6\xb3\x95\xe5\x8a\xa0\xe8\xbd\xbd\xe6\x8e\xa7\xe5\x88\xb6\xe5\x99\xa8:Index.php' | |
| >>> print (t.decode('utf-8')) | |
| 无法加载控制器:Index.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.rmi.AccessException; | |
| import java.rmi.AlreadyBoundException; | |
| import java.rmi.ConnectException; | |
| import java.rmi.ConnectIOException; | |
| import java.rmi.MarshalledObject; | |
| import java.rmi.NoSuchObjectException; | |
| import java.rmi.NotBoundException; | |
| import java.rmi.Remote; | |
| import java.rmi.RemoteException; | |
| import java.rmi.activation.ActivationDesc; |