05 2018 档案
摘要:No1: 目前,Python有两个版本,一个是2.x版,一个是3.x版,这两个版本是不兼容的 No2: 用r''表示''内部的字符串默认不转义 No3: 以'''开头,敲回车可以换行 No4: 布尔值True和False,注意大小写 No5: 空值None No6: python是动态语言,即定义变
阅读全文
摘要:需求:根据不同渠道,app的开屏启动页不一样 思路:因为app的启动页是在清单文件配置的,而清单文件最后是要和main里面的清单文件合并的,所以每个渠道都要配一个清单文件,在里面设置 然后在AndroidManifest.xml中,在对应的启动页<activity>标签里面配置下面代码即可 注意ma
阅读全文
摘要:LeetCode第20题 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is
阅读全文
摘要:Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl
阅读全文
摘要:LeetCode第13题 Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, ju
阅读全文
摘要:LeetCode第9题 Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2:
阅读全文
摘要:LeetCode第7题: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note:Assume we are dealing with an environm
阅读全文
摘要:需求1:根据渠道不同给包名添加不同的后缀名 方案: 打出apk后使用命令检查是否修改包名成功 结果如下 修改成功 需求2:修改生成的apk文件名 修改replace里面的内容即可 欢迎关注我的微信公众号:安卓圈
阅读全文
摘要:自定义aar-upload.gradle文件 buile.gradle引用添加 脚本大家在网上都搜的到,坑爹的是有些东西说的很不清楚。 仓库分四种类型:group仓库组、hosted本地仓库、proxy代理仓库、virtual虚拟仓库 本地上传的话,只能传到hosted仓库,所以gradle脚本只能
阅读全文
摘要:需求:制作一个公共组件,可以实现多个SDK想用哪个用哪个,集中管理 组织方式: 架构形式 注意点: 1.sdk必须通过maven库来compile,因为jar会打到aar中;所以library和主module都要compile 2.控制文件SdkConfig.properties(放在src/mai
阅读全文
摘要:No1: Unity2017.1版本导出的android工程放到Android Studio上跑起来非常卡,Unity2017.3或4版本导出就没问题。 对比后发现gradle文件有差异,特此标注 1)gradle版本改为2.3.0 2)sdk版本改为27或以下 3)android块中加这句 aap
阅读全文
摘要:第一步,下载https://www.sonatype.com/download-oss-sonatype 别下3.x版本,下2.x版本 第二步,解压,在bin目录下执行cmd命令,nexus install然后nexus start 第三步,查看http://localhost:8081/nexus
阅读全文