• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

yxchun

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 31 下一页

2022年4月14日

python 调用dos修改IP 、网关 、子网掩码

摘要: 想要修改成功,必须用管理员才行; 有2种方法:1)python要调用管理员窗口 ; 2)写好后的py文件用管理员执行; 方法1 import ctypes, sys, os, time import datetime cmd1 = "netsh interface ip set address \" 阅读全文

posted @ 2022-04-14 11:17 yxchun 阅读(378) 评论(0) 推荐(0)

DOS,,命令修改IP地址;修改DNS

摘要: 1 修改IP netsh interface ip set address "VMware Network Adapter VMnet8" static 192.168.109.34 255.255.255.0 192.168.109.1 “ ” 里面为网络连接的名称,比如 后面3个参数 2 修改D 阅读全文

posted @ 2022-04-14 11:02 yxchun 阅读(778) 评论(0) 推荐(0)

2022年3月31日

Jmeter 的PerfMon Metrics Collector 显示连接失败,连接不到服务端的serverAgent

摘要: 1.尝试利用telnet 连接 telnet 服务端ip serverAgent端口 telnet 10.34.123.2 4444 如果ping不通 1.查看服务端的防火墙是否关闭,要关闭的!!! 2、查看serverAgent的端口是否被占用,如果被占用会在ServerAgent控制台显示 如果 阅读全文

posted @ 2022-03-31 15:36 yxchun 阅读(897) 评论(0) 推荐(0)

2022年3月30日

Jmeter报错 javax.swing.text.BadLocationException: Position not represented by view

摘要: 解决方法: jmeter中bin文件夹下面jmeter.properties文件中修改如下: remote_hosts=127.0.0.1 server_port=1099 阅读全文

posted @ 2022-03-30 17:55 yxchun 阅读(1021) 评论(0) 推荐(0)

local variable referenced before assignment

摘要: 在函数内部更改全局变量就会出现此错误 解决方法:将全局变量放在函数内部,或是不更改 参考:https://blog.csdn.net/sinat_40304087/article/details/115701595 阅读全文

posted @ 2022-03-30 17:54 yxchun 阅读(217) 评论(0) 推荐(0)

2022年3月28日

java 调用 python代码

摘要: java 其中arg是String[] { “python”,path,url1,url2 }; ,path是python程序所在的路径,url1是参数1,url2是参数2,以此类推。 public class Test11 { public static void main(String[] ar 阅读全文

posted @ 2022-03-28 16:17 yxchun 阅读(74) 评论(0) 推荐(0)

2022年3月26日

jmeter 调用 python代码

摘要: 1、添加计数器 2、创建BeanShell 取样器 3、BeanShell 取样器内容如下 import java.io.BufferedReader;import java.io.InputStreamReader; //python 路径 C://Users//chun//Desktop//FA 阅读全文

posted @ 2022-03-26 18:35 yxchun 阅读(255) 评论(0) 推荐(0)

2022年3月23日

No module named "Crypto" 和 No module named "Crypto.Cipher"问题解决

摘要: 参考文章 https://www.cnblogs.com/fawaikuangtu123/p/9761943.html 如果之前安装了crypto,请先卸载 卸载 pip uninstall crypto 安装 pycryptodome pip install pycryptodome 如果在使用的 阅读全文

posted @ 2022-03-23 14:59 yxchun 阅读(305) 评论(0) 推荐(0)

2022年3月20日

java 设置Excel单元格颜色

摘要: // 创建单元格颜色 HSSFCellStyle cellstyle = (HSSFCellStyle) workbook.createCellStyle(); cellstyle.setFillPattern(SOLID_FOREGROUND); cellstyle.setFillForegrou 阅读全文

posted @ 2022-03-20 14:31 yxchun 阅读(2910) 评论(0) 推荐(0)

2022年3月13日

给类和方法加注释

摘要: 1、给类加注释 /** * *@Author zd *@date ${DATE} ${TIME} *@Des **/ 2、给方法加注释 参考文章 https://zhuanlan.zhihu.com/p/386392249 阅读全文

posted @ 2022-03-13 11:08 yxchun 阅读(69) 评论(0) 推荐(0)

上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 31 下一页
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3