我的主板是ASUS H81M-E,它连接到一个路由器。
在BIOS中设置:
Advanced--Realtek Lan Controller--enabled
--Realtek Pxe Option Rom--enabled
在路由器中设置:
the ip and mac address are binded together
我想唤醒局域网上的pc,路由器打开,我的安卓手机安装了qpython3,startpc.py很简单:
from wakeonlan import send_magic_packet
send_magic_packet('my pc'
所以我正在用python3.5做一个基于文本的小游戏,我想添加一个类似这样的函数
“按Enter键继续...”
所以我搜索了一下,发现了这个代码。
def enter():
input('Press Enter to Continue...")
import msvcrt as m
def wait():
m.getch()
我不知道msvcrt是什么(我现在仍然不知道……我学了一个月的python……)但是这个方法运行得很好,直到我尝试用一个叫QPython 3.X的应用程序在安卓手机上运行我的代码。
原来msvcrt是windows
我的简单家庭互联网环境:调制解调器(Pppoe)+路由器+ pc。调制解调器是光纤到户( FTTH )的FTTH设备,通过光纤传送通信信号。
BIOS中的设置:
Advanced--Realtek Lan Controller--enabled
--Realtek Pxe Option Rom--enabled
Advanced--APM--Power on by PCI-E
路由器中的设置:
the ip (192.168.31.52) and mac address are binded together
我的安卓qpython3中的start_lan.py脚本:
fro
我正在使用安卓设备上的QPython应用程序来运行脚本。我有一个需要pandas包的脚本,但似乎无法将其下载到我的手机上。该应用程序在"QPYPI“和"AIPY”部分下有一个下载额外包的部分。它有numpy和其他列出的以及熊猫。它开始下载熊猫,直到最后写着File is not a zip file。Here是错误的图像。我只是在想,有没有人知道如何解决这个问题,或者有其他方法可以让我把熊猫下载到我的手机上?
import pickle
FILE_PATH='/sdcard/file.bin'
DIC = {'usr':'jxxx@yyy.com',
'pw':'123456' }
with open(FILE_PATH, 'wb') as handle:
pickle.dump(DIC, handle)
with open(FILE_PATH, 'rb') as handle:
b = pickle.loads(handle.read())
pri
我已经在我的安卓手机上安装了QPython。我在QEdit中编写了一条语句,以便从以下路径读取文本文件
/storage/emulated/0/com.hipipal.qpyplus/script3/File1.txt
我使用了下面的语句
fob=open('/storage/emulated/0/com.hipipal.qpyplus/script3/File1.txt','r')
fob.read()
如果我运行该语句,它抛出的错误如下:
IOError:[Errno 2] No such file or directory: '/storage/e
我正在尝试在qpython中运行以下脚本。你能推荐一个安卓系统中mpg321的替代品吗?
import os
from time import sleep as sleep
pwd = os.path.dirname(os.path.abspath(__file__))
os.chdir(pwd)
work_time = int(raw_input("give the working time. Default time is 25 minutes : ") or "25")
chill_time = int(raw_input("give the