ICode9

精准搜索请尝试: 精确搜索
  • c#_更改控制台文字输出颜色2022-07-15 09:35:06

    static void Main(string[] args)         {             //Console.BackgroundColor = ConsoleColor.Blue; //设置背景色        Console.ForegroundColor = ConsoleColor.White; //设置前景色,即字体颜色        Console.WriteLine("第一行白蓝.");      

  • posh-git Powershell Prompt2022-02-09 13:35:45

    Import-Module posh-git $GitPromptSettings.DefaultPromptWriteStatusFirst = $true $GitPromptSettings.DefaultPromptBeforeSuffix.Text = ' $([DateTime]::now.ToString("HH:mm:ss"))' $GitPromptSettings.DefaultPromptBeforeSuffix.ForegroundColor

  • C#列出所有物理网络适配器的代码2022-01-05 15:31:45

    把写代码过程中常用的一些代码片段备份一次,下面代码是关于C#列出所有物理网络适配器的代码,应该对大家有用。 using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Management; using System.Text; namespace Robvan

  • 利用 Powershell 编写简单的浏览器脚本2021-07-27 14:36:25

    生活中有很多事情是低效益,重复性。比如每天上某些网站,先登录再签到打卡,比如每隔一段时间清理回收站的文件等等。一个成熟的软件工程师应该想到用软件解决他。 对于这些简单的小任务,一般用脚本实现。比如Python脚本或者JavaScript脚本等等,不过还得装运行环境。如果能在电脑上直接用

  • swiftUI设置TextField的placeholder自定义文本颜色2021-06-30 17:03:35

    SwiftUI。如何更改TextField的默认的颜色 首先目前没有api直接在下面点然后就可以调用要自己写 创建自己的custom,View以在所有地方使用 struct CustomTextField: View { var placeholder: Text @Binding var text: String var editingChanged: (Bool)->() = { _

  • 用C#控制台写飞行棋(第五篇)2020-11-26 15:00:52

    1.编写头部内容。 2.输入玩家内容。 3. 定义地图内容。 4. 打印地图。 5. 游戏前的准备。 6. 游戏玩法。 定义一个string类型数组存储玩家A、B姓名 static string[] PlayerName = new string[2]; public static void Start() //游戏开始 {

  • 用C#控制台写飞行棋(第四篇)2020-11-26 14:31:57

    1.编写头部内容。 2.输入玩家内容。 3. 定义地图内容。 4. 打印地图。 5. 游戏前的准备。 6. 游戏玩法。 static int[] Player = new int[2];//设置一个全局变量储存玩家位置 首先在class Program里面创建一个方法: public static void DrawMap() 画地图可以根据自己喜欢的

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有