Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新工作遇到的坑 #62

Open
yihong0618 opened this issue Oct 10, 2019 · 9 comments
Open

新工作遇到的坑 #62

yihong0618 opened this issue Oct 10, 2019 · 9 comments
Labels
工作 工作

Comments

@yihong0618
Copy link
Owner

2019.10.10

  1. 虚拟环境 激活 source bin/activate 反激活 deactivate
@yihong0618 yihong0618 added the 工作 工作 label Oct 10, 2019
@yihong0618
Copy link
Owner Author

python 版本不同在 pip 上会有很多问题 , 在公司开发一定关注python版本

@yihong0618
Copy link
Owner Author

django 启动 --settings=a.b.c

@yihong0618
Copy link
Owner Author

csv 写文件避免空行
open(csv_file_path + os.sep + csv_name, "w", newline="")

@yihong0618
Copy link
Owner Author

windows docker 双斜杠

docker run -d --name myredis -p6379:6379 -v //c/dockerdata/redis/data:/data de25a81a5a0b --appendonly yes

@yihong0618
Copy link
Owner Author

@yihong0618
Copy link
Owner Author

git-diff to ignore ^M

@yihong0618
Copy link
Owner Author

git ls-remote ~~~~.git列举所有远程分支

@yihong0618
Copy link
Owner Author

if [[ " ${array[@]} " =~ " ${value} " ]]; then
# whatever you want to do when arr contains value
fi

if [[ ! " ${array[@]} " =~ " ${value} " ]]; then
# whatever you want to do when arr doesn't contain value
fi

@yihong0618
Copy link
Owner Author

yihong0618 commented Apr 29, 2020

django 启动线程的话,会有连接不关闭的现象
https://zkkmin.com/2018/05/11/database-connection-leak-while-using-threads-in-django/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
工作 工作
Projects
None yet
Development

No branches or pull requests

1 participant