1. ''' '''the comment in the middle will be shown in your code while ranning

2. a=b
c=a%b
or we can simplify them into:a, c=b, a%b

3. while we wanna test your code in another file, we need to (1) import + file_name  (2) file_name.function_name( your input)

or we can do (1) from file_name import function_name  (2) function_name( your input )

4. testmod() will import what inside ''' ''' as input and see is the output is same what is inside ''' ''' as well, like final exam

5. when we are 调用function, we can add a * in the front of the function when the output appears with pairs, as so we can remove the pears
def f():
  return (2,4,5)
def f(a,b,c):
  return 2*a+b+c
  return g(*f())

6. (0,0)*2=(0,0,0,0)
((0,0))*2=((0,0),(0,0))

7. format: for example, we got x=90

f'{x: 8b}'  means we will use empty to make it occupy 8 spaces in total

f'{5:08b}' means we will use 0 to do that

8. x%10 can get the right most number
x //10%10 can get the second one from right side
x//100%10 the third one

最新文章

  1. SQL IN ANY ,(all any) 区别
  2. phpunit学习 3:
  3. free命令查看内存使用情况(转载)
  4. hdu 2715 Herd Sums
  5. SDC(7) -- 关于使能信号的时序放松
  6. 浅谈html入门
  7. poj 3761 bubble sort (排列组合)
  8. 【Hibernate】版本错误 org/hibernate/Query : Unsupported major.minor version 52.0
  9. Hello TensorFlow 二 (GPU)
  10. mybatis动态sql排序无效
  11. Error: expected expression, got '}'
  12. 复习HTML+CSS(6)
  13. 采购,接收数据收集SQL汇总(从订单->接收->INVOICE所有数据关联SQL)
  14. 用什么方法给PDF添加页眉页脚
  15. 常见mysql的慢查询优化方式
  16. Docker Compose 安装 on centos7
  17. Map:目录
  18. 剑指offer题解
  19. centos/rhel 7 几个最重要变化(systemd,firewalld,networkmanager,文件系统)
  20. Spring IOC 容器源码分析 - 创建原始 bean 对象

热门文章

  1. openstack安装newton版本keyston部署(一)
  2. T-SQL多个小计+合计,分类汇总
  3. Redis 基础特性讲解
  4. MiniDao分页的坑
  5. JVM类加载机制一
  6. 《移动Web前端高效开发实战》笔记4--打造单页应用SPA
  7. Appium基础五:appium相关API
  8. Android 使用NestedScrollView+ViewPager+RecyclerView+SmartRefreshLayout打造酷炫下拉视差效果并解决各种滑动冲突
  9. vue.js的package.json相关问题解惑
  10. 【TensorFlow入门完全指南】神经网络篇·循环神经网络(RNN)