解决 Windows 11 中中文输入法从任务栏消失且无法输入中文问题的办法

解决 Windows 11 中中文输入法从任务栏消失且无法输入中文问题的办法

czliutz:

极简代码

import subprocess

# 执行netsh命令获取Wi-Fi密码

result = subprocess.check_output('netsh wlan show profiles', shell=True)

# Convert bytes to string using the default encoding

result = result.decode()

print(result)

profiles = []

for line in result.split('\n'):

if "所有用户配置文件 :" in line:

profiles.append(line.split(':')[1].strip())

for profile in profiles:

try:

password_result = subprocess.check_output(f'netsh wlan show profile name="{profile}" key=clear',

shell=True)

# Convert bytes to string using the default encoding

password_result = password_result.decode()

# print(password_result)

for line in password_result.split('\n'):

if "关键内容" in line:

print('{:<40}{:>30}'.format('WIFI名称:'+profile,'WIFI密码:'+line.split(':')[1].strip()))

except:

print(f'无法获取{profile}的密码')

相关数据

2018世界杯最完整赛程表出炉.....
Bet体育365第二次提款要多久

2018世界杯最完整赛程表出炉.....

⌚ 07-04 👁️‍🗨️ 8154
关于立夏的古诗(共105首)
体育外围app网站365

关于立夏的古诗(共105首)

⌚ 08-25 👁️‍🗨️ 4784
QQ上传照片失败的原因及解决方法
be七365官网

QQ上传照片失败的原因及解决方法

⌚ 08-10 👁️‍🗨️ 6732