01 2021 档案
摘要:# -*- coding:utf-8 -*- str_var = 'a' var = ord(str_var) print 'var type:',type(var) print var print data = 65 var = chr(data) print 'data type:',type(
阅读全文
摘要:string str = "hello"; byte[] array = new byte[1]; array = System.Text.Encoding.ASCII.GetBytes(str); //把str的每个字符转换成ascii码 int asciicode1 = (short)(arra
阅读全文
摘要:MyCollections.shuffle(ref list) using System; using System.Collections.Generic; using System.Text; public class MyCollections { public static void shu
阅读全文
摘要:using UnityEngine; using Vectrosity; public class myLines : MonoBehaviour { void Start () { //定义屏幕上的6个点,左下角为(0,0) var linePoints = new List<Vector2>()
阅读全文
摘要:void Start () { // 发送给自身的所有脚本 //SendMessage("GetMessage", this.gameObject, SendMessageOptions.RequireReceiver); // 发送给自身的所有脚本以及自身父物体,父物体的父物体等身上所有脚本 //
阅读全文
摘要:NetworkInterface[] nis = NetworkInterface.GetAllNetworkInterfaces(); Debug.Log(nis[0].GetPhysicalAddress().ToString());
阅读全文

浙公网安备 33010602011771号