摘要: 一、去除空格 strip() 1 2 3 4 " xyz ".strip() # returns "xyz" " xyz ".lstrip() # returns "xyz " " xyz ".rstrip() # returns " xyz" " x y z ".replace(' ', '') 阅读全文
posted @ 2020-12-02 15:10 没有尾巴的狗 阅读(101) 评论(0) 推荐(0)
摘要: 两个都可以执行系统命令,但是如果想要获取到命令的输出内容就要用到os.popen com=os.popen('ls') print(com.readlines()) 阅读全文
posted @ 2020-12-02 15:08 没有尾巴的狗 阅读(129) 评论(0) 推荐(0)
摘要: 模态框获得参数,传递给flask后台 (解决我的问题,就是可以把表格上的参数,传递到模态框上面去。用于记录学习) 流程 把user1 传到模态框上,然后静态框提交到后台 前端html <td style="font-size: 16px;"><button type="button" class=" 阅读全文
posted @ 2020-12-02 10:22 没有尾巴的狗 阅读(789) 评论(0) 推荐(0)