2018年5月3日

摘要: 因为这个函数时linux下专用的,Windows下无法使用,所以会导致提示这个函数不能使用,解决的方法如下: 1. import platform 2. if platform.system() == "Linux": _os.fchmod(fl.fileno(), reader.mode if o 阅读全文
posted @ 2018-05-03 15:14 帅胡 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 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 帅胡 阅读(1996) 评论(0) 推荐(0) 编辑

导航