摘要: C:\Users\NVTester>runas /nonprofile /user:yyy@xxxx.com regedit.exe Enter the password for nxxxx@xxxx.com: Attempting to start regedit.exe as user "yyy@xxxx.com" ... 阅读全文
posted @ 2019-08-13 14:38 浪淘砂 阅读(782) 评论(0) 推荐(0) 编辑
摘要: 关键两个点: 阅读全文
posted @ 2019-08-13 13:56 浪淘砂 阅读(142) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-08-02 17:52 浪淘砂 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 背景: 当前demo.py 文件,所处目录 D:\py\test\TestCase,需要调用test 目录下的模块,尝试了 新建__init__.py 文件+ import test.模块名的方法,无效. 报错信息: 解决方案: 要导入上级目录,可以借助 sys.path,把上级目录加到 sys.p 阅读全文
posted @ 2019-06-26 18:14 浪淘砂 阅读(7195) 评论(0) 推荐(0) 编辑
摘要: 因需要涉及linux GUI界面操作需要远程连接。搜了下VNC是支持linux 的, 但搜了下网上教程,大部分都很繁琐,而且有的是tigerVNC. 访问官网试装了下,发现比较简单,类似windows 配置。 1.官网找到对应的linux 包,此处为DEB X64 https://www.realv 阅读全文
posted @ 2019-06-26 17:04 浪淘砂 阅读(8542) 评论(0) 推荐(0) 编辑
摘要: 参考: 1.视频:https://www.youtube.com/watch?v=dvtjV4Xmtj0 2. https://cuiqingcai.com/6080.html 3.https://rgb-24bit.github.io/blog/2018/python-logging.html#o 阅读全文
posted @ 2019-06-21 20:51 浪淘砂 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1.Windows下查询dll/exe所依赖的文件: 工具:VS 自带dumpbin.exe, 例如C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin 下 若: Image has the following delay load d 阅读全文
posted @ 2019-06-19 20:14 浪淘砂 阅读(2049) 评论(0) 推荐(0) 编辑
摘要: from subprocess import Popen,PIPE 1.光标处于闪烁等待状态,不能实时输出测试cmd界面. [原因]:使用communicate()函数,需要等脚本执行完才返回。 def communicate(self, input=None): [方案]:用subprocess. 阅读全文
posted @ 2019-05-28 18:47 浪淘砂 阅读(4430) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-05-27 10:47 浪淘砂 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 实际上真正的Python参数传递语法是*和**。*args和**kwargs只是一种约定俗成的编程实践。我们也可以写成*vars和**kvars。 可以看到,这两个是python中的可变参数。 *args表示任何多个无名参数,它是一个tuple;**kwargs表示关键字参数,它是一个dict。 并 阅读全文
posted @ 2019-05-20 10:54 浪淘砂 阅读(314) 评论(0) 推荐(0) 编辑