摘要: .so库第一次见到是在搜索Android保存静态秘钥等特殊id字段做法时看到的-通过NDK的方式将静态秘钥保存在so文件中, 关于原生开发工具包(NDK)详细见官网指南要更详细,这里我记录我度娘各种结果后的实现. 在工具中添加自定义工具添加javah命令和dnk-build命令 这里name:自定义 阅读全文
posted @ 2018-04-26 14:55 探出的头 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 接触python 一直觉着编译后报错经常没能捕捉显示,每次也只能从头看到尾 恰好在水木社区中看到关于异常捕捉帖子 方法一:捕获所有异常 try: a=b b=c except Exception,ex: print Exception,":",ex 方法二:采用traceback模块查看异常 imp 阅读全文
posted @ 2018-02-08 12:39 探出的头 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 今天遇到了个低级问题: EnvironmentError:mysql_config not found 网上谷歌了一圈发现没用,静下来想的时候才发现新电脑没安装Mysql,吐血 后面再去官网上下载Mysql 进行配置的时候,出现 -bash: mysql: command not found 1、先 阅读全文
posted @ 2018-02-07 10:49 探出的头 阅读(603) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-import osimport urllibimport urllib2from bs4 import BeautifulSoup headers = { 'Accept': 'text / html, application / xhtml + xml 阅读全文
posted @ 2018-02-06 16:09 探出的头 阅读(244) 评论(0) 推荐(0) 编辑
摘要: requests库 发送请求: 可以处理所有请求类型:get、post、put、Delete、Head、Options r = requests.get(''https://httpbin.org/') r = requests.post('https://httpbin.org/post') r 阅读全文
posted @ 2018-02-01 19:21 探出的头 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Command "d:\progra~2\jetbra~1\testvir\scripts\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\admin\\appdata\\local\\temp\\pip-buil 阅读全文
posted @ 2018-02-01 15:56 探出的头 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 本来运行项目:python manage.py runserver 8000 发现运行到结果报错: Error: That port is already in use 首先查看已存在端口号列表: $ ps aux | grep -i manage 然后只需运行$ kill -9 <pid> 图上显 阅读全文
posted @ 2017-12-15 11:37 探出的头 阅读(9137) 评论(0) 推荐(0) 编辑
摘要: #-*- coding:utf-8 -*- import xlwt import urllib import re def getHtml(url): page = urllib.urlopen(url) html = page.read() return html def get_book_message(url): page = urllib.urlope... 阅读全文
posted @ 2017-10-17 16:31 探出的头 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 自定义组件(Component) 组件生命周期: constructor: 在组件创建的时候调用一次,这个方法进行this.state初始化状态机 constructor(props) { super(props); // 初始状态 this.state = { isShow:true };} co 阅读全文
posted @ 2017-07-12 14:47 探出的头 阅读(984) 评论(0) 推荐(0) 编辑
摘要: Core Animation框架 Core Animation可以作用与动画视图或者其他可视元素,为你完成了动画所需的大部分绘帧工作。你只需要配置少量的动画参数(如开始点的位置和结束点的位置)即可使用Core Animation的动画效果。Core Animation将大部分实际的绘图任务交给了图形 阅读全文
posted @ 2017-03-13 18:49 探出的头 阅读(142) 评论(0) 推荐(0) 编辑