会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
帅胡
2018年5月3日
scpclient使用报错fchmod无法找到问题解决
摘要: 因为这个函数时linux下专用的,Windows下无法使用,所以会导致提示这个函数不能使用,解决的方法如下: 1. import platform 2. if platform.system() == "Linux": _os.fchmod(fl.fileno(), reader.mode if o
阅读全文
posted @ 2018-05-03 15:14 帅胡
阅读(285)
评论(0)
推荐(0)
python 判断操作系统类型
摘要: 1 #!/bin/python 2 # 3 import platform 4 5 def TestPlatform(): 6 print ("----------Operation System--------------------------") 7 #Windows will be : (32bit, WindowsPE) 8 #Linux wi...
阅读全文
posted @ 2018-05-03 15:01 帅胡
阅读(2009)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告