资源简介
两个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版本selenium webdriver api
- python q-learning
- dqn_agent-master
- RL-Stock-master 使用强化学习完成股票预
- Drowsiness_Detection
- reinforcement-learning-an-introduction-master
- geckodriver-v0.23.0-linux64.tar.gz
- Machine Learning with Python Cookbook
- [machine_learning_mastery系列]xgboost_with_p
- XGBoost With Python machinelearningmastery
- geckodriver-v0.18.0-win64
- Python Machine Learning(2nd) 无水印原版
- Deep Learning for Computer Vision with Python链
- Practical Computer Vision Applications Using D
- 莫烦全部代码Reinforcement-learning-with-
- Deep Learning: Recurrent Neural Networks in Py
- [machine_learning_mastery系列]long-short-ter
- 新型冠状病毒每日数据跟踪.rar
- SFTPDriveV2.rar
- 使用uiautomator2+pytest+allure进行Android的
- python多渠道打包android App(资料+源码
- android 多渠道打包(python)
- Deep Learning:用 Python 進行深度學習的
- Python数据分析基础教程:NumPy学习指南
- 微信公众号的爬取 Selenium+Chromedriver
- Qlearning简单实现
- Drcom_CQU.py
- 基于python开发的monkey自动化工具
- Q_Learning_maze.rar
- libsvm gridregression.py
评论
共有 条评论