#! /usr/bin/env python3

#序列切片操作对于字符串的 运用
url = input("Please enter the URL:")
domain = url[11:-4]
print("Domain name :"+domain)
# zhengjuns-MacBook-Pro:chapter02 zhengjun$ /Users/zhengjun/Desktop/PythonBeginning/chapter02/domin_name.py
# Please enter the URL:http://www.bilibili.com
# Domain name :bilibili
