JSRUN 用代码说话
# coding:utf-8
import os
def LookUpDict(dic,tn):
    tns=tn
    File=[]
    Get=[]
    GetName=""
    for root,dirs,files in os.walk(dic):
        for file in files:
            File.append(os.path.join(root,file))
    for i in range(len(File)):
        tns=tn
        Long=len(File[i])
        GetName=""
        for j in range(len(tn)+1):
            GetName=GetName+str(File[i][Long-(len(tn)-j)-1])
        if tn!="":
            tns="."+tns
        if GetName == str(tns):
            Get.append(File[i])
    return Get
lone(前端大神) - 2020-08-04 1 人
文件批量查找
lone(前端大神) - 2020-08-04 1 人
Cola-UI Input Icon
package com.etime.test019;
import java.util.Arrays;
public class Test13 {
	public static void main(String[] args) {
		int[] array = {5,68,1,56,8,56,84,586,4,55,6,4,565,45,56,4556,45415,5455,5445,5754,4456,6745,6445,6745557,998,4657,5675,565756,576,4576557,5687,6557,5687,57867586,526,7565,7586,788};
		int len = array.length;
		System.out.println("排序前的数组为:"+Arrays.toString(array));
		int temp = 0;
		for (int i = 0; i < len - 1; i++) {
			for (int j = 0; j < len - 1 - i; j++) {
				if (array[j] > array[j + 1]) {
					temp = array[j + 1];
					array[j + 1] = array[j];
					array[j] = temp;
				}}}
		System.out.println("排序后的数组为:"+Arrays.toString(array));
	}
}

lone(前端大神) - 2020-08-04 1 人
排序...
def built_in():
    print("""Python 3.6.6 (qpyc:3.6.6, Jul 26 2018, 03:54:22) [BUILD WITH QPY3-TOOLCHAIN (https://github.com/qpython-android) ] on linux
Type "help", "copyright", "credits" or "license" for more information.""")
    ps1=">>> "
    ps2="... "
    In=""
    Err="""Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
"""
    Errors=False
    class built_in_out(Exception):
        def __init__(self,Error):
            self.Error=Error
        def __str__(self):
            print(self.Error)
    while 1:
        Errors=False
        try:
            In=input(ps1)
            eval(In)
        except UnicodeDecodeError  as err:
            print(Err,end="")
            print(repr(err))
        except Exception:pass
        else:continue
        if (":" in In) or Errors:
            Codes=[]
            Codes.append(In)
            while In!="":
                try:
                    In=input(ps2)
                    Codes.append(In)
                except UnicodeDecodeError as err:
                    print(Err,end="")
                    print(repr(err))
                except KeyboardInterrupt as err:
                    print(Err,end="")
                    print(repr(err))
            In=""
            for i in range(len(Codes)):
                In=str(In)+str(Codes[i])+"\n"
            try:
                eval(In)
            except UnicodeDecodeError  as err:
                print(Err,end="")
                print(repr(err))
            except :
                try:
                    exec(In)
                except KeyboardInterrupt as err:
                    print(Err,end="")
                    print(repr(err))
                except Exception as err:
                    print(Err,end="")
                    print(repr(err))
        else:
            try:
                eval(In)
            except UnicodeDecodeError  as err:
                print(Err,end="")
                print(repr(err))
            except :
                try:
                    exec(In)
                except KeyboardInterrupt as err:
                    print(Err,end="")
                    print(repr(err))
                except Exception as err:
                    print(Err,end="")
                    print(repr(err))
built_in()
lone(前端大神) - 2020-08-04 1 人
Python shell...
lightblue.sky(白衣酒客) - 2020-08-04 1 人
Canvas简易绘制幽灵小可爱
-- hello/mytest.lua

local  M  =  {}  -- 私有变量

local  function  test()  print(123)  end

function  M.test1()  test()  end

function  M.test2()  M.test1();  M.test1()  end

return  M  -- 关键
ida521994(Keanz Yin) - 2020-08-04 1 人
模块打包测试
没有了
1/419 下一页