草庐IT

all_name

全部标签

windows - 为什么我收到错误 "scons: *** no platform named ' win3 2'"?

我试图编译一些使用scons作为构建系统的C++源代码。在我使用python3.2.X(64位)和我认为是python2.7.X(32位)的64位Windows机器上,我在尝试运行scons时会收到以下错误:scons:***noplatformnamed'win32'我相当确定我的2.7安装是32位的,因为过去我曾尝试在64位系统上使用scons,但它完全无法运行。我花了一个小时左右的时间玩弄它,尝试修复安装,在google/SO上四处寻找,等等,但找不到解决方案。最后,我使用32位和64位安装程序卸载了python2.7(我想我一定是在同一个位置安装了两者?),卸载了scons,删

windows - 命令/电源外壳 : minimize all windows on your desktop except for current command prompt (console) or except for some particular window

好吧,我知道如何使用powershell方法从批处理文件中最小化桌面上所有打开的窗口-MinimizeAll():powershell-command"&{$x=New-Object-ComObjectShell.Application;$x.minimizeall()}"问题是:此方法最小化了所有内容,包括当前的cmd-console,在我的情况下,它应该始终对用户可见。现在,为了解决这个问题,我使用外部nircmd.exe工具和我的.bat文件的这一部分如下所示:::changecurrentcommandpromptwindowtitletitlemy-cmd-console::

python - SE_SYSTEMTIME_NAME 权限不存在

我正在尝试从Windows7计算机上的用户帐户(而不是管理员帐户)更改系统时间。为了更改系统时间,在这个link中提到我们需要拥有SE_SYSTEMTIME_NAME权限。这是我的python脚本。importos,sysimportwin32apiimportwin32securitypriv_flags=win32security.TOKEN_ADJUST_PRIVILEGES|win32security.TOKEN_QUERYhToken=win32security.OpenProcessToken(win32api.GetCurrentProcess(),priv_flags)

windows - 错误 RC2247 : Symbol name too long (winnt. h)

尝试在Win32应用程序中显示对话框时出现RC2247错误(符号名称太长)。此文件中发生错误:C:\ProgramFiles(x86)\WindowsKits\10\Include\10.0.17134.0\um\winnt.h这在VS2015下运行良好。当我升级到VS2017时出现错误。我看过以下帖子,它们似乎不相关,因为它们属于prsht.h:RC2247:CannotopenRcfile:Resourceexplorercannotloadresource;Loadfailedhttp://social.msdn.microsoft.com/Forums/en-US/vcprer

ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 1

ValueError:alltheinputarraysmusthavesamenumberofdimensions,butthearrayatindex0has1dimension(s)andthearrayatindex1has2dimension(s)目录ValueError:alltheinputarraysmusthavesamenumberofdimensions,butthearrayatindex0has1dimension(s)andthearrayatindex1has2dimension(s)问题:解决:完整错误:问题:importnumpyasnp#createa1da

c# - Windows 窗体应用程序基础 : Keeping all forms in one window

我正在使用VisualStudio2010在VB.net中编写一个Windows窗体应用程序(仍然欢迎C#响应)。我已经创建了我的应用程序的功能,现在正在处理UI流程。基本上,我需要让应用程序的所有功能从一开始就以介绍形式出现/消失。他们单击Introduction.vb表单中的一个选项,原始Material消失,取而代之的是他们单击的任何内容。然后,如果他们想返回上一页,则下一页上有一个后退按钮。这是原始的Introduction.vb:PublicClassIntroductionInheritsSystem.Windows.Forms.FormPrivateSubIntroduc

python - Cygwin 上的 os.name 是什么?

Whentouseos.name,sys.platform,orplatform.system?建议os.name可能是'nt'。ReliablydetectWindowsinPython建议os.name是'posix'。是'posix'还是'nt'? 最佳答案 在Cygwin64上,importos;printos.name;importsys;printsys.platform;importplatform;printplatform.system()产量:posixcygwinCYGWIN_NT-6.1

python - `pickle` : yet another `ImportError: No module named my_module`

我在my_module中定义了一个类MyClass。MyClass有一个方法pickle_myself可以pickle相关类的实例:defpickle_myself(self,pkl_file_path):withopen(pkl_file_path,'w+')asf:pkl.dump(self,f,protocol=2)我已确保my_module在PYTHONPATH中。在解释器中,执行__import__('my_module')工作正常:>>>__import__('my_module')但是,当最终加载文件时,我得到:File"A:\Anaconda\lib\pickle.py

c - MPICH:如何发布_name 以便客户端应用程序可以查找_name 呢?

在Windows(1.4.1p1)中使用MPICH学习MPI时,我发现了一些示例代码here.最初,当我运行服务器时,我必须复制生成的port_name并用它启动客户端。这样,客户端就可以连接到服务器了。我将其修改为在服务器中包含MPI_Publish_name()。在启动名称为aaaa的服务器后,我启动了失败的客户端MPI_Lookup_name()withInvalidservicename(seeMPI_Publish_name),errorstack:MPID_NS_Lookup(87):Lookupfailedforservicenameaaaa以下是代码片段:服务器.cMP

android - Appium Android Windows : driver. findElement(By.name (""))不能连续工作

WebElementusername=driver.findElement(By.name("username"));username.sendKeys("test");WebElementpassword=driver.findElement(By.name("password"));password.sendKeys("test");WebElementloginBtn=driver.findElement(By.name("Login"));loginBtn.click();WebElementbackBtn=driver.findElement(By.tagName("Butt