1 四则运算: a = 9 b = 2 print(a + b) print(a - b) print(a * b) print(a / b) # 正常除法 print(a // b) # 向下取整 print(a % b) # 取模,即除法的余数 print(a ** b) # 幂,a的b次幂 结 ...
分类:
其他好文 时间:
2021-01-19 12:17:21
阅读次数:
0
找了好久 原来使用jupyter需要安装两个东西 安装ipython conda install ipython 安装jupyter conda install jupyter 最后输入: ipython kernelspec install-self --user 这样才可以用jupyter 今天 ...
分类:
其他好文 时间:
2021-01-19 12:13:15
阅读次数:
0
Image图片组件分为网络图片和本地图片使用: 1、使用资源图片前必做两个步骤: 1、在根目录下创建子目录,子目录中创建2.0x和3.0x(也可以创建4.0x、5.0x... 但是2.0和3.0是必须的)目录,在对应目录中添加对应分辨率图片。(图1) 2、打开pubspec.yaml文件, 配置图片 ...
分类:
其他好文 时间:
2021-01-19 12:11:05
阅读次数:
0
Ansible 常用模块 参考地址: https://docs.ansible.com/ansible/latest/modules/modules_by_category.html ping command and shell # 注意区别和相同 # command 不能识别变量以及引号内容 ro ...
分类:
系统相关 时间:
2021-01-19 12:09:17
阅读次数:
0
BindsNET:https://github.com/BindsNET/bindsnet 相关代码:bindsnet/examples/breakout/ 1. breakout.py from bindsnet.network import Network from bindsnet.pipel ...
分类:
Web程序 时间:
2021-01-19 12:05:12
阅读次数:
0
https://www.cnblogs.com/mr-wuxiansheng/p/6974170.html ...
分类:
其他好文 时间:
2021-01-19 11:57:04
阅读次数:
0
引子 解决 CentOS 7 下 Git 超时后,发现库还是太大,要花费比较长的时间,还是让其在后台运行比较好,这样不用一直保持登录。找了下资料,总结一下。 Origin My GitHub 相关知识点 Shell Shell 是一种命令语言,也是一种程序设计语言。它是用户使用 Linux 的桥梁。 ...
分类:
其他好文 时间:
2021-01-19 11:47:02
阅读次数:
0
def select_sort_simple(li): li_new = [] for i in range(len(li)): min_val = min(li) li_new.append(min_val) li.remove(min_val) return li_new def select_ ...
分类:
编程语言 时间:
2021-01-19 11:43:46
阅读次数:
0
Linux入门-设置系统时间 起因:当前时间已经是2021年1月17日,晚上22:20左右了,但是系统显示的是1.18早上6:20,时间提前了。 # timedatectl list-timezones # 列出所有时区 # timedatectl set-local-rtc 1 # 将硬件时钟调整 ...
分类:
其他好文 时间:
2021-01-19 11:42:48
阅读次数:
0
CF1461B Find the Spruce 题目大意: 求指定类型图案的数量。 思路: 一个很巧妙的递推式。 注意从下往上进行递推。 Code: #include <bits/stdc++.h> using namespace std; const int N = 510; int n, m; ...
分类:
其他好文 时间:
2021-01-19 11:39:58
阅读次数:
0