摘要:
import hashlib hash = hashlib.md5() hash.update(text.encode('utf-8')) print(hash.hexdigest())
阅读全文
posted @ 2019-09-08 22:44
anobscureretreat
阅读(194)
推荐(0)
摘要:
解决办法:删除bootstrap.min.css文件内容最后一行/*…………*/内容即可
阅读全文
posted @ 2019-09-08 17:16
anobscureretreat
阅读(4507)
推荐(1)
摘要:
my_private_rsa_key.bin code 参考: https://github.com/Legrandin/pycryptodome
阅读全文
posted @ 2019-09-08 16:04
anobscureretreat
阅读(990)
推荐(0)
摘要:
https://cdnjs.com/libraries/crypto-js
阅读全文
posted @ 2019-09-08 10:50
anobscureretreat
阅读(3568)
推荐(0)
posted @ 2019-09-08 02:16
anobscureretreat
阅读(256)
推荐(0)
摘要:
安装apache yum install httpd vi /etc/httpd/conf/httpd.conf 修改默认端口为81 service httpd start netstat -nltp [root@xxx html]# netstat -nltp Active Internet connections (only servers) Proto Recv-Q Send-Q Local
阅读全文
posted @ 2019-09-06 23:45
anobscureretreat
阅读(159)
推荐(0)
摘要:
#include <stdio.h> #include <string.h> int main () { const char str[] = "http://www.runoob.com"; const char ch = '.'; char *ret; ret = strchr(str, ch); printf("|%c| 之后的字符串是 - |%s|\n", ch, ret); return
阅读全文
posted @ 2019-09-06 23:44
anobscureretreat
阅读(219)
推荐(0)
摘要:
pip3.6 install https://github.com/darklow/django-suit/tarball/v2
阅读全文
posted @ 2019-09-06 23:42
anobscureretreat
阅读(276)
推荐(0)
摘要:
pip3.6 install djangorestframework
阅读全文
posted @ 2019-09-06 23:41
anobscureretreat
阅读(1037)
推荐(0)
摘要:
pip3.6 install django-rest-swagger
阅读全文
posted @ 2019-09-06 23:40
anobscureretreat
阅读(2750)
推荐(0)
摘要:
ModuleNotFoundError: No module named 'suit'
阅读全文
posted @ 2019-09-06 23:39
anobscureretreat
阅读(470)
推荐(0)
摘要:
test.py PyYAML 5.1 deprecation of the plain yaml.load(input) function . 解决掉警告的方法: yaml.warnings({'YAMLLoadWarning': False}) yaml.load(input, Loader=ya
阅读全文
posted @ 2019-09-04 00:57
anobscureretreat
阅读(3012)
推荐(0)
摘要:
virtualenv --no-site-packages -p python3.7 testenv source testenv/bin/activate deactivate 参考;https://www.liaoxuefeng.com/wiki/1016959663602400/1019273
阅读全文
posted @ 2019-09-04 00:54
anobscureretreat
阅读(2237)
推荐(0)
摘要:
https://www.openssl.org/source/
阅读全文
posted @ 2019-09-04 00:53
anobscureretreat
阅读(511)
推荐(0)
摘要:
下载: https://www.python.org/ftp/python/3.7.4/ .tgz文件,解压后,进入该文件夹 编译./configuremakesudo make install 当 sudo make install 时:报错ModuleNotFoundError: No modu
阅读全文
posted @ 2019-09-03 12:04
anobscureretreat
阅读(2186)
推荐(0)
摘要:
https://www.python.org/ftp/python/ https://www.cnblogs.com/linxue/p/10097785.html https://blog.csdn.net/timtian008/article/details/81186356 https://bl
阅读全文
posted @ 2019-09-03 11:43
anobscureretreat
阅读(175)
推荐(0)
摘要:
https://github.com/robinhood/faust
阅读全文
posted @ 2019-09-02 17:51
anobscureretreat
阅读(209)
推荐(0)
摘要:
subprocess.CalledProcessError: Command ‘(‘lsb_release’, ‘-a’)’ returned non-zero exit status 1. 解决方法find / -name lsb_releaserm -rf /usr/bin/lsb_releas
阅读全文
posted @ 2019-09-02 15:14
anobscureretreat
阅读(3410)
推荐(0)
摘要:
下载源码:https://www.python.org/downloads/release/python-373/ 一、先安装需要的包zlib1g,libffisudo apt-get update sudo apt-get install zlib1g-dev sudo apt-get insta
阅读全文
posted @ 2019-09-02 14:59
anobscureretreat
阅读(2044)
推荐(0)
摘要:
a.py test.sh 输出 test.sh 输出 参考: http://ju.outofmemory.cn/entry/62675https://zhidao.baidu.com/question/391954555815798765.htmlhttps://www.cnblogs.com/ka
阅读全文
posted @ 2019-08-31 10:20
anobscureretreat
阅读(1101)
推荐(0)
摘要:
a=1.6b=6.1c=`echo "$a > $b" | bc`然後,如果 $c 是 1 ,那就成立,否則不成立。 参考: http://ju.outofmemory.cn/entry/62675
阅读全文
posted @ 2019-08-30 19:38
anobscureretreat
阅读(721)
推荐(0)
摘要:
test.py 输出 参考/: https://www.runoob.com/python/python-files-io.htmlhttps://www.cnblogs.com/bigberg/p/6430095.htmlhttps://www.runoob.com/python3/python3
阅读全文
posted @ 2019-08-29 19:04
anobscureretreat
阅读(176)
推荐(0)
摘要:
test.pyclass sss: def ddd(self): print("hello") test2.pyfrom testone import sss
阅读全文
posted @ 2019-08-29 18:12
anobscureretreat
阅读(157)
推荐(0)
摘要:
import os import sys print(sys.argv) bogon:Desktop macname$ python3 test2.py deesws.json dede.json swswsw.json ['test2.py', 'deesws.json', 'dede.json', 'swswsw.json']
阅读全文
posted @ 2019-08-29 18:11
anobscureretreat
阅读(760)
推荐(0)
摘要:
>>> import os>>> os.path.join('/hello/','good/boy/','doiido')>>>'/hello/good/boy/doiido' 参考:https://blog.csdn.net/fu6543210/article/details/80032895
阅读全文
posted @ 2019-08-29 18:11
anobscureretreat
阅读(1399)
推荐(0)
摘要:
os.remove():删除指定文件 os.rmdir():删除指定目录 os.mkdir():创建单级目录 os.makedirs():创建多级目录 os.listdir(dirname):列出dirname下的目录和文件 os.getcwd():获得当前工作目录 os.curdir:返回当前目录('.') os.chdir(dirname):改变工作目录到dirname os.path....
阅读全文
posted @ 2019-08-29 18:10
anobscureretreat
阅读(149)
推荐(0)
摘要:
import os print(os.getcwd()) print("/".join(os.path.dirname(os.path.abspath(__file__)).split("/"))) bogon:testdir macname$pwd /Users/macname/Desktop/testdir bogon:testdir macname$ python3 ../test2.py
阅读全文
posted @ 2019-08-29 18:10
anobscureretreat
阅读(704)
推荐(0)
摘要:
运行命令的目录echo %cd% 运行文件的目录 echo %~dp0 a.bat@echo offecho %cd%echo %~dp0 C:\Users\macname>.\Desktop\a.batC:\Users\macnameC:\Users\macname\Desktop\ C:\Use
阅读全文
posted @ 2019-08-29 18:09
anobscureretreat
阅读(203)
推荐(0)
摘要:
@echo off set regpath=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment set basepath=%~dp0 echo 当前路径 %basepath% set javahome=%basepath%jdk1.8.0_131 echo javahome %javahom
阅读全文
posted @ 2019-08-29 16:53
anobscureretreat
阅读(246)
推荐(0)
摘要:
#!/bin/bash #java environment variables Base_Path=$(cd `dirname $0`; pwd) echo $Base_Path JAVA_HOME=$Base_Path/jdk1.8.0_131 echo $JAVA_HOME JAVA_BIN=$Base_Path/jdk1.8.0_131/bin echo $JAVA_BIN PATH=$PA
阅读全文
posted @ 2019-08-29 16:52
anobscureretreat
阅读(347)
推荐(0)
摘要:
参考: https://www.cnblogs.com/answercard/p/7142448.html
阅读全文
posted @ 2019-08-29 01:01
anobscureretreat
阅读(228)
推荐(0)
摘要:
如果已经安装好pip3,那么执行命令安装virtualenv环境 安装完成检测版本是否安装成功 创建新目录 创建一个独立的Python运行环境,命名为venv,参数--no-site-packages,表示已经安装到系统Python环境中的所有第三方包都不会复制过来,这样,我们就得到了一个不带任何第
阅读全文
posted @ 2019-08-29 00:47
anobscureretreat
阅读(3741)
推荐(0)
摘要:
参考: https://blog.csdn.net/rubik_wong/article/details/70188046
阅读全文
posted @ 2019-08-29 00:37
anobscureretreat
阅读(6106)
推荐(0)
摘要:
update-alternatives命令可以修改系统默认命令的软链指向,参考这里,上面两句指令就是修改了系统默认的/usr/bin/python3 的软链指向,指向了两个位置,最后面的1和2是优先级。 通过以下命令,可以切换Python3的指向 参考: https://blog.csdn.net/
阅读全文
posted @ 2019-08-29 00:31
anobscureretreat
阅读(1551)
推荐(0)
摘要:
参考: https://www.cnblogs.com/jpfss/p/9713719.html
阅读全文
posted @ 2019-08-29 00:22
anobscureretreat
阅读(509)
推荐(0)
摘要:
解决: 升级到python3.6
阅读全文
posted @ 2019-08-29 00:13
anobscureretreat
阅读(13123)
推荐(0)
摘要:
参考: 网站 stackoverflow 以及segmentfault。
阅读全文
posted @ 2019-08-26 18:15
anobscureretreat
阅读(21103)
推荐(0)
摘要:
#!/bin/sh a=`uname -a` b="Darwin" c="centos" d="ubuntu" if [[ $a =~ $b ]];then echo "mac" elif [[ $a =~ $c ]];then echo "centos" elif [[ $a =~ $d ]];then echo "ubuntu" else echo $a fi
阅读全文
posted @ 2019-08-26 18:03
anobscureretreat
阅读(5325)
推荐(0)
摘要:
http://mirrors.aliyun.com/ubuntu-releases/14.04/
阅读全文
posted @ 2019-08-26 15:42
anobscureretreat
阅读(322)
推荐(0)
摘要:
http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#post-processing-outputs
阅读全文
posted @ 2019-08-26 15:41
anobscureretreat
阅读(233)
推荐(0)