def phone_type(producttype):
if producttype == "iPhone3,1":
return "iPhone 4"
elif producttype == "iPhone3,2":
return "iPhone 4"
elif producttype == "iPhone3,3":
return "iPhone 4"
elif producttype == "iPhone4,1":
return "iPhone 4S"
elif producttype == "iPhone5,1":
return "iPhone 5"
elif producttype == "iPhone5,2":
return "iPhone 5"
elif producttype == "iPhone5,3":
return "iPhone 5C"
elif producttype == "iPhone5,4":
return "iPhone 5C"
elif producttype == "iPhone6,1":
return "iPhone 5S"
elif producttype == "iPhone6,2":
return "iPhone 5S"
elif producttype == "iPhone7,1":
return "iPhone 6 Plus"
elif producttype == "iPhone7,2":
return "iPhone 6"
elif producttype == "iPhone8,1":
return "iPhone 6S"
elif producttype == "iPhone8,2":
return "iPhone 6S Plus"
elif producttype == "iPhone8,4":
return "iPhone SE"
elif producttype == "iPhone9,1":
return "iPhone 7"
elif producttype == "iPhone9,2":
return "iPhone 7 Plus"
elif producttype == "iPhone10,1":
return "iPhone 8"
elif producttype == "iPhone10,2":
return "iPhone 8 Plus"
elif producttype == "iPhone10,3":
return "iPhone X"
elif producttype == "iPhone10,4":
return "iPhone 8"
elif producttype == "iPhone10,5":
return "iPhone 8 Plus"
elif producttype == "iPhone10,6":
return "iPhone X"
elif producttype == "iPhone11,2":
return "iPhone XS"
elif producttype == "iPhone11,4":
return "iPhone XS Max"
elif producttype == "iPhone11,6":
return "iPhone XS Max"
elif producttype == "iPhone11,8":
return "iPhone XR"
else:
return None
网友评论