资源简介
两个python文件和一份报告。
计算机网络课程第二次作业。

代码片段和文件信息
from sim.api import *
from sim.basics import *
import string
‘‘‘
Create your learning switch in this file.
‘‘‘
class LearningSwitch(Entity):
def __init__(self):
self.forwardingtable = {};
def handle_rx (self packet port):
if packet is None or port is None:
return
if packet.dst is NullAddress :
return
if self.get_port_count() == 0:
return
if packet.src not in self.forwardingtable:
self.forwardingtable[packet.src] = port
if packet.dst not in self.forwardingtable:
self.send(packet port True)
return
else:
self.send(packet self.forwardingtable[packet.dst])
def handle_link_up (selfportentity):
pass
def handle_link_down (selfportentity):
pass
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 926 2013-05-31 15:44 learning_switch.py
文件 3657 2013-05-31 15:47 rip_router.py
文件 47104 2013-05-31 15:51 程序说明&思路.doc
----------- --------- ---------- ----- ----
51687 3
相关资源
- Python Machine Learning Case Studies
- dronet源码+论文(深度学习)
- jd抢茅台(基于selenium.webdriver)
- 模拟自动滑块验证码.py(基于chromed
- Supervised Learning with Python
- python数据分析源代码Ivan Idris
- Deep Learning Cookbook_ practical recipes to g
- deeplearningPID
- deep learning with python 中文版
- Introduction to machine learning with python (
- Learning Data Mining With Python book 代码及数
- Introduction to Machine Learning with Python.p
- Deep Learning for Natural Language Processing
- 吴恩达深度学习超参数调制完整程序
- Deep Learning With Python - Jason Brownlee
- Python-神经网络模型能够从音频演讲中
- 高动态范围HDR成像
- selenium webdriver (python)第三版.pdf
- Python Data Analysis Cookbook by Ivan Idris
- 《深度学习Deep Learning with Python 2017》
- Test-Driven Development with Python
- Learning Data Mining with Python - Second Edit
- 《深入浅出Python机器学习》源程序.
- Practical Machine Learning and Image Processin
- python+keras+deeplearning
- LIDC-IDRI-nodule-segmentation-master.zip
- 基于Python的深度学习
- Hands-On Unsupervised Learning Using Python.pd
- Python Machine Learning( Python机器学习.
- Hands On Machine Learning with Python: Concept
评论
共有 条评论