摘要:
code num = 4 if num > 0: print("正数") elif num == 0: print("零") else: print("负数") # 内嵌 if 语句 if num >= 0: if num == 0: print("零") else: print("正数") els
阅读全文
posted @ 2020-05-03 15:15
anobscureretreat
阅读(482)
推荐(0)
摘要:
code # 用户输入 x = 123 y = 456 # 创建临时变量,并交换 temp = x x = y y = temp print('交换后 x 的值为: {}'.format(x)) print('交换后 y 的值为: {}'.format(y)) # 不使用临时变量 x,y = y,x
阅读全文
posted @ 2020-05-03 15:13
anobscureretreat
阅读(248)
推荐(0)
摘要:
code # 用户输入摄氏温度 celsius = 34.43 # 计算华氏温度 fahrenheit = (celsius * 1.8) + 32 print('%0.1f 摄氏温度转为华氏温度为 %0.1f ' %(celsius,fahrenheit))
阅读全文
posted @ 2020-05-03 15:12
anobscureretreat
阅读(1470)
推荐(0)
摘要:
code # 生成 0 ~ 9 之间的随机数 # 导入 random(随机数) 模块 import random print(random.randint(0,9))
阅读全文
posted @ 2020-05-03 15:11
anobscureretreat
阅读(235)
推荐(0)
摘要:
1.安装编译相关工具yum -y groupinstall "Development tools"yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-deve
阅读全文
posted @ 2020-05-01 23:17
anobscureretreat
阅读(2263)
推荐(0)
摘要:
安装git yum -y install git
阅读全文
posted @ 2020-05-01 13:29
anobscureretreat
阅读(433)
推荐(0)
摘要:
面试官问: 最难忘的bug? 遇到的最大的挑战? 犯过的错误? 遭遇的失败? 最享受的工作内容? 遇到冲突的处理方式? 做的最与众不同的事? 面试官:你有什么问题想问我么?答: 整个小组的大概运行模式是怎么样的? 整个项目的后续规划是如何的? 为什么会选择某些技术?标准? 这个产品中的某个技术问题是
阅读全文
posted @ 2020-04-30 14:21
anobscureretreat
阅读(290)
推荐(0)
摘要:
一.将要测试的接口域名写入到文件中,如下 macname@MacdeMacBook-Pro Interface-automation-test % cat conf/hostname.yaml data: {default_baseurl: 'https://baike.baidu.com', is
阅读全文
posted @ 2020-04-25 17:19
anobscureretreat
阅读(4710)
推荐(0)
摘要:
在python_server文件夹中运行server.py , 运行apk,输入IP以及port 登陆成功,长按元素弹出菜单 1. 2. github: https://github.com/fusu192/transfer
阅读全文
posted @ 2020-04-24 15:26
anobscureretreat
阅读(254)
推荐(0)
摘要:
示例图 github地址: https://github.com/fusu192/music_player
阅读全文
posted @ 2020-04-23 12:04
anobscureretreat
阅读(218)
推荐(0)
摘要:
先用word打开,选择unicode(utf-8),见下图,点击确定,打开bug文件, 接下来 保存。 再用Excel打开即可!
阅读全文
posted @ 2020-04-20 14:35
anobscureretreat
阅读(750)
推荐(0)
摘要:
I: Using Apktool 2.0.0-Beta9 on com.qianbian.yuyin-4.2.2-101902.apk I: Loading resource table... Exception in thread "main" brut.androlib.AndrolibExce
阅读全文
posted @ 2020-04-12 13:51
anobscureretreat
阅读(1145)
推荐(0)
摘要:
code Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more
阅读全文
posted @ 2020-04-08 17:39
anobscureretreat
阅读(450)
推荐(0)
摘要:
code #!/bin/bash curl haiyou.tian-wang.com &> /dev/null if [ $? -eq 0 ]; then curl_ins_search=1 else curl_ins_search=0 fi echo $curl_ins_search
阅读全文
posted @ 2020-03-17 14:14
anobscureretreat
阅读(351)
推荐(0)
摘要:
code import os import time PING_RESULT = 0 NETWORK_RESULT = 0 def DisableNetwork(): ''' disable network card ''' result = os.system(u"netsh interface
阅读全文
posted @ 2020-03-17 13:05
anobscureretreat
阅读(3266)
推荐(1)
摘要:
https://github.com/Tunnelblick/Tunnelblick/releases
阅读全文
posted @ 2020-03-11 19:03
anobscureretreat
阅读(0)
推荐(0)
摘要:
在 REST 样式的 Web 服务中,每个资源都有一个地址。资源本身都是方法调用的目标,方法列表对所有资源都是一样的。这些方法都是标准方法,包括 HTTP GET、POST、PUT、DELETE,还可能包括 HEAD 和 OPTIONS。
阅读全文
posted @ 2020-03-09 16:05
anobscureretreat
阅读(716)
推荐(0)
摘要:
code #!/usr/bin/python3 # -*- coding: utf-8 -*- a = int(input(u"输入被除数: ")) b = int(input(u"输入除数:")) div = a // b mod = a % b print("{} / {} = {} ... {
阅读全文
posted @ 2020-03-03 18:45
anobscureretreat
阅读(2322)
推荐(0)
摘要:
Uri.encodeComponent(url); // To encode url Uri.decodeComponent(encodedUrl); // To decode url from: https://blog.csdn.net/qq_32760901/article/details/9
阅读全文
posted @ 2020-02-23 16:19
anobscureretreat
阅读(2212)
推荐(0)
摘要:
import osa = 'var/label/txt/123.txt' print(os.path.splitext(a)) b = 'var/label/txt/123' print(os.path.splitext(b)) 输出 ('var/label/txt/123', '.txt') ('
阅读全文
posted @ 2020-02-23 16:14
anobscureretreat
阅读(259)
推荐(0)
摘要:
code { '.*': 'application/octet-stream', '.tif': 'application/x-tif', '.001': 'application/x-001', '.301': 'application/x-301', '.323': 'text/h323', '
阅读全文
posted @ 2020-02-23 13:19
anobscureretreat
阅读(1086)
推荐(0)
摘要:
分块下载真的能提高下载速度吗? 其实下载速度的主要瓶颈是取决于网络速度和服务器的出口速度,如果是同一个数据源,分块下载的意义并不大,因为服务器是同一个,出口速度确定的,主要取决于网速,而上面的例子正式同源分块下载,读者可以自己对比一下分块和不分块的的下载速度。如果有多个下载源,并且每个下载源的出口带
阅读全文
posted @ 2020-02-19 21:38
anobscureretreat
阅读(513)
推荐(0)
摘要:
当正在dev分支上开发某个项目,这时项目中出现一个bug,需要紧急修复,但是正在开发的内容只是完成一半,还不想提交,这时可以用git stash命令将修改的内容保存至堆栈区,然后顺利切换到hotfix分支进行bug修复,修复完成后,再次切回到dev分支,从堆栈中恢复刚刚保存的内容。 由于疏忽,本应该
阅读全文
posted @ 2020-02-18 20:49
anobscureretreat
阅读(206)
推荐(0)
摘要:
在gradle.properties中添加如下代码即可 android.enableJetifier=true android.useAndroidX=true
阅读全文
posted @ 2020-01-30 11:02
anobscureretreat
阅读(924)
推荐(0)
摘要:
在style下面的TextStyle增加属性decoration: TextDecoration.none
阅读全文
posted @ 2020-01-29 21:32
anobscureretreat
阅读(2188)
推荐(0)
摘要:
全屏截图-截取当前屏幕整个图像: 快捷键: Command-Shift-3 指定区域截图: 快捷键:Command-Shift-4 指定程序窗口截图: 快捷键:Commnad-Shift-4-Space 参考: https://chromecj.com/macos/2018-11/1641.html
阅读全文
posted @ 2020-01-28 22:55
anobscureretreat
阅读(396)
推荐(0)
摘要:
平时我们在开发flutter过程中,在执行flutter packages get命令之后,如果运气不好的,命令没有执行成功的话,我们就会遇到这个错误提示: Waiting for another flutter command to release the startup lock... 1 然后
阅读全文
posted @ 2020-01-28 22:53
anobscureretreat
阅读(407)
推荐(0)
摘要:
elevation: 0.0, // 下部的影子,该值越大,影子越清楚,为0时,不会有影子,和RaisedButton是一样的
阅读全文
posted @ 2020-01-22 22:38
anobscureretreat
阅读(1029)
推荐(0)
摘要:
使用010 editor,编辑C:\Python27\Scripts\pip2.exe, 修改为如下目录程序名称 然后保存即可。
阅读全文
posted @ 2020-01-22 00:56
anobscureretreat
阅读(2214)
推荐(0)
摘要:
pip3.7 install pytest-cov
阅读全文
posted @ 2020-01-21 00:45
anobscureretreat
阅读(749)
推荐(0)
摘要:
pip3.7 install portend 参考: https://pypi.org/project/portend/
阅读全文
posted @ 2020-01-20 14:58
anobscureretreat
阅读(299)
推荐(0)
摘要:
pip3.7 install cheroot 参考: https://pypi.org/project/cheroot/
阅读全文
posted @ 2020-01-20 14:56
anobscureretreat
阅读(871)
推荐(0)
摘要:
pip3.7 install zc.lockfile
阅读全文
posted @ 2020-01-20 14:54
anobscureretreat
阅读(823)
推荐(0)
摘要:
pip3.7 install zc.buildout 参考: https://www.cnblogs.com/0xcafedaddy/p/8533781.html
阅读全文
posted @ 2020-01-20 14:42
anobscureretreat
阅读(286)
推荐(0)
摘要:
pip3.7 install jaraco.text 参考: https://pypi.org/project/jaraco.text/
阅读全文
posted @ 2020-01-20 14:38
anobscureretreat
阅读(686)
推荐(0)
摘要:
pip3.7 install jaraco.classes 参考: https://www.cnpython.com/pypi/jaracoclasses
阅读全文
posted @ 2020-01-20 14:35
anobscureretreat
阅读(391)
推荐(0)
摘要:
mac报错: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bi
阅读全文
posted @ 2020-01-17 11:34
anobscureretreat
阅读(11024)
推荐(0)
摘要:
cat ~/.ssh/id_rsa.pub
阅读全文
posted @ 2020-01-14 16:59
anobscureretreat
阅读(339)
推荐(0)
摘要:
#下载flutter git clone https://github.com/flutter/flutter.git #导入到环境变量 export PATH="$PATH:`pwd`/flutter/bin" #pre-download development binaries flutter
阅读全文
posted @ 2020-01-14 16:55
anobscureretreat
阅读(238)
推荐(0)
摘要:
1. 简单介绍:Flutter是google发布的一个用于创建跨平台、高性能移动应用框架,目前可以使用在Android、iOS、Web乃至桌面应用上。 2. 前景: Cordova:Apache项目,其实现原理就是内部封装了一个WebView,然后通过web技术编写移动应用,性能很低。 Weex或R
阅读全文
posted @ 2020-01-14 16:47
anobscureretreat
阅读(604)
推荐(0)