美文网首页
2019-03-18 临时笔记

2019-03-18 临时笔记

作者: fanchuang | 来源:发表于2019-03-18 23:39 被阅读0次

1. 生词

assembler 汇编语言
mandatory 强制性
hyphen 连字符,-
palindrome 回文(指顺读和倒读都一样的词语)
POSIX 可移植操作系统接口(Portable Operating System Interface of UNIX,缩写为 POSIX )
# print(os.name)
fraction 分数,片段
truncated 切除的,删除的

2. 临时笔记

1. 根据当前文件,下载需要的外部包,需要有setup.py
# pip3 install -e . 
# 另外见: pip3 install --help 
2. 一年好景君须记,最是橙黄橘绿时 --苏轼
3. 吾年未四十,而视茫茫,而发苍苍,而齿牙动摇  --祭十二郎文 --韩愈
4. 日期格式化, 年月日 
# print(datetime.date.today().isoformat()) 

5. 查看是谁点击了这个链接(可以跟踪点击者的位置)
https://canarytokens.org/generate
http://canarytokens.com/about/xds4zr7uvwrbft2loc6x9owdb/contact.php

6. Ubuntu18.10 安装 VS Code
# 参考1: https://blog.csdn.net/hellozex/article/details/80763558
# 参考2:https://blog.csdn.net/qq_30068487/article/details/82589347

7. 电影网站推荐
# 蛋蛋赞 https://www.dandanzan.com/dianying/
# 胖子视频 http://www.pangzi.ca/?m=vod-type-id-1.html

8. print(sys.argv[0])
# 得到当前执行文件的绝对路径

9. print(os.getenv('USERNAME'))
# 计算机当前用户的名字

10. print(platform.node())
# 计算机的名字 GSW

11. 字符串填充
print(str(1).zfill(4))      # 0001

12. 退出并给出提示信息
# sys.exit("Must provide an argument.")

13. python3的字符串总共有40个内建的方法:
# http://www.runoob.com/python3/python3-string.html

14.移动文件夹
# shutil.move('test_dir/', '/home/fc/Desktop/')

相关文章

网友评论

      本文标题:2019-03-18 临时笔记

      本文链接:https://www.haomeiwen.com/subject/xzzimqtx.html