用感知器实现and函数
参考博客:https://www.zybuluo.com/hanbingtao/note/433855点击打开链接
and 运算时一个二元运算,它的真值表如下:
x1 | x2 | y |
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
Python:
用感知器实现and函数
参考博客:https://www.zybuluo.com/hanbingtao/note/433855点击打开链接
and 运算时一个二元运算,它的真值表如下:
x1 | x2 | y |
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
Python: