社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
私信  •  关注

Nate

Nate 最近回复了
6 年前
回复了 Nate 创建的主题 » ajax响应后如何在jquery中刷新表单[duplicate]

你可以用 document.getElementById("addform").reset(); 重置窗体

10 年前
回复了 Nate 创建的主题 » 在linux服务器上运行d3和python脚本文件

我在我的VPS上试过,然后用 alias 命令对我有效:

server {
  listen 80;
  server_name   something.nateeagle.com;

  location /something {
    alias /home/neagle/something;
    index index.html index.htm;
  }
}
7 年前
回复了 Nate 创建的主题 » 如何比较python中ser.readline()的输出?

通过检查答案是否在读取值的子字符串中,我可以让它工作:

while 1:
time.sleep(1)
ser.write(u.encode('utf-8'))
print('ACK sent')
res = ser.readline()
result = res.find('ON')
if result > -1:
    print('Pass')
else:
    print('Try again')enter code here