说明:地理空间文件格式:shapefile(最常见)、GeoJSON、KML和GPKG
文件读取
# Read in the data
full_data = gpd.read_file("../input/geospatial-learn-course-data/DEC_lands/DEC_lands/DEC_lands.shp")
# View the first five rows of the data
full_data.head()
坐标参考系由欧洲石油勘探集团(EPSG)规范引用。
这 <weixin_38610513> 上传 | 大小:624kb
说明:任务要求
现需要设置一个密码,要求长度大于等于8,全部为字母,并且必须同时包含大写字母和小写字母。
要求从键盘读取输入,判断它是不是一个合规的密码,是输出”yes”,否输出”no”。
两行压缩
第一次感觉不太能写一行,就写了两行,tcl……
a = input()
print("yes" if (len(a)>=8 and a.isalpha() and (not a.islower()) and (not a.isupper())) else "no")
使用的是类似于三目运算的 if <weixin_38686153> 上传 | 大小:115kb