PowerShell实现统计函数嵌套深度(powershell 运行脚本)没想到

随心笔谈9个月前发布 admin
210 00
🌐 经济型:买域名、轻量云服务器、用途:游戏 网站等 《腾讯云》特点:特价机便宜 适合初学者用 点我优惠购买
🚀 拓展型:买域名、轻量云服务器、用途:游戏 网站等 《阿里云》特点:中档服务器便宜 域名备案事多 点我优惠购买
🛡️ 稳定型:买域名、轻量云服务器、用途:游戏 网站等 《西部数码》 特点:比上两家略贵但是稳定性超好事也少 点我优惠购买

文章摘要

本文描述了一组关于“Test-Diving”系统的测试结果,系统用于计算不同深度的值。测试过程中,系统依次测试了从1米到10米的深度,首次测试时计算深度与实际深度一致(1-10米对应计算深度1-10)。然而,在第二次测试中,计算深度均比实际深度多1(1米对应计算深度2,2米对应计算深度3,依此类推,10米对应计算深度11)。这种结果表明,系统在计算深度时存在一个固定的偏移量,可能与系统的设计或算法有关。


PS C:\> Test-Diving -Depth 1
diving deeper to 1 meters…
calculated depth: 1
diving deeper to 2 meters…
calculated depth: 2
diving deeper to 3 meters…
calculated depth: 3
diving deeper to 4 meters…
calculated depth: 4
diving deeper to 5 meters…
calculated depth: 5
diving deeper to 6 meters…
calculated depth: 6
diving deeper to 7 meters…
calculated depth: 7
diving deeper to 8 meters…
calculated depth: 8
diving deeper to 9 meters…
calculated depth: 9
diving deeper to 10 meters…
calculated depth: 10

PS C:\> & { Test-Diving -Depth 1 }
diving deeper to 1 meters…
calculated depth: 2
diving deeper to 2 meters…
calculated depth: 3
diving deeper to 3 meters…
calculated depth: 4
diving deeper to 4 meters…
calculated depth: 5
diving deeper to 5 meters…
calculated depth: 6
diving deeper to 6 meters…
calculated depth: 7
diving deeper to 7 meters…
calculated depth: 8
diving deeper to 8 meters…
calculated depth: 9
diving deeper to 9 meters…
calculated depth: 10
diving deeper to 10 meters…
calculated depth: 11

PS C:\>

© 版权声明

相关文章