杂项
就是爱折腾
痴迷于编码和图形
展开
-
python,c#命令行,c#窗体,Powershell接收参数方法总结
#python: #import sys #argv[0]:本py脚本所在路径 argv[1]:第一个参数 #print(sys.argv[0]) #print(sys.argv[1]) #bat中 #@echo off # python format.py test111 # pause #powershell #https://www.cnblogs.com/dreamer-fish/p/3681063.html # param($a,$b) # write-host "Hello,$a"...原创 2021-01-11 13:08:58 · 323 阅读 · 0 评论 -
python,js,c#调用命令行总结
# python: # import os # import subprocess #普通cmd命令 # os.system('ipconfig') # subprocess.call(['ipconfig']) #调用bat脚本 # os.system('"test.bat" test111') # os.system('call "test.bat" test222') # subprocess.call(['test.bat','test333']) #调用exe # os.system('cal.原创 2021-01-11 12:46:06 · 206 阅读 · 0 评论 -
一个常用工具类
using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; public class Utils { //安全的获得一个组件 public static T GetSafeComponet<T>(GameObject target...原创 2020-05-08 16:48:18 · 135 阅读 · 0 评论