上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 132 下一页
摘要: 打印报错的行列数与位置 def by2by2(num): """ :param num: """ try: num2 = int(num) for bb in range(1, num2 + 1): yy2 = bb for bb2 in range(1, bb + 1): result2 = yy 阅读全文
posted @ 2023-12-27 09:34 txwtech 阅读(162) 评论(0) 推荐(0)
摘要: 输入9,开始打印;0:退出 key_msg = input("please key in Number(0:exit):"),调用乘法表函数键盘输入的是字符型数据字符串比较与数字比较是否相等注意区分 # This is a sample Python script. # Press Shift+F1 阅读全文
posted @ 2023-12-27 09:07 txwtech 阅读(70) 评论(0) 推荐(0)
摘要: btn_state_container.xml p115 <?xml version="1.0" encoding="utf-8"?> <state-container xmlns:ohos="http://schemas.huawei.com/res/ohos"> <item ohos:state 阅读全文
posted @ 2023-12-26 21:31 txwtech 阅读(53) 评论(0) 推荐(0)
摘要: 1.安装 PyInstaller pip install pyinstaller 2.创建python文件 3. 转换成exe pyinstaller aa2.py 完成后,我们将在当前文件夹中看到两个文件夹 “Build” 和 “Dist” 。在 “Dist” 文件夹中有一个与脚本文件名称相同的文 阅读全文
posted @ 2023-12-26 13:58 txwtech 阅读(137) 评论(0) 推荐(0)
摘要: Set-ExecutionPolicy : 无法绑定参数“ExecutionPolicy”。无法将值“RomoteSigned”转换为类型“Microsoft.PowerShell.ExecutionPolicy”。错误:“无法将标识符名称 RomoteSigned 与有效的枚举器名称相匹配。请指定 阅读全文
posted @ 2023-12-26 13:55 txwtech 阅读(1351) 评论(0) 推荐(0)
摘要: cp .-r /aa1 ./aa2 ./点和斜杠表示当前目录,-r表示拷贝目录 把当前目录的aa1复制到aa2 复制文件到指定文件夹 cp test2.txt ../ttx ../两个点和斜杠,表示上一级目录 复制test2.txt 到上一级目录的ttx里面 mv移动命令 mv ./aa1 ./aa 阅读全文
posted @ 2023-12-26 13:21 txwtech 阅读(123) 评论(0) 推荐(0)
摘要: 一、多进程--实现TCP并发通信 实现TCP服务器并发处理任务,可以使用多线程或多进程解决。 父(进)线程负责等待并接受客户端链接。 子(进)线程完成通信。 服务端: #include <stdio.h> #include <arpa/inet.h> #include <unistd.h> #inc 阅读全文
posted @ 2023-12-21 08:21 txwtech 阅读(296) 评论(0) 推荐(0)
摘要: 鸿蒙app java代码构建用户界面 background_ability_main.xml <?xml version="1.0" encoding="UTF-8" ?> <shape xmlns:ohos="http://schemas.huawei.com/res/ohos" ohos:sha 阅读全文
posted @ 2023-12-16 21:54 txwtech 阅读(170) 评论(3) 推荐(0)
摘要: DevEco studio 本地模拟器Haxm安装失败 解决参考文档: https://developer.harmonyos.com/cn/docs/documentation/doc-guides/faq-local-emulator-0000001116085454#section870872 阅读全文
posted @ 2023-12-16 15:30 txwtech 阅读(599) 评论(0) 推荐(0)
摘要: int nRet = MyCamera.MV_CC_EnumDevices_NET(MyCamera.MV_GIGE_DEVICE | MyCamera.MV_USB_DEVICE, ref m_stDeviceList); if (0 != nRet) { ShowErrorMsg("Enumer 阅读全文
posted @ 2023-12-14 17:07 txwtech 阅读(470) 评论(0) 推荐(0)
上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 132 下一页