您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

test.py 244B

1234567891011
  1. #! /usr/bin/env python
  2. import dhcp_client
  3. dh = dhcp_client.DhcpClient()
  4. offer = dh.get_offer('00:15:00:ba:60:da', 'eth0')
  5. #offer = dh.get_offer('08:00:27:45:60:dc', 'wlan0')
  6. if offer == None:
  7. print("Timeout")
  8. else:
  9. print(offer.str())