首先在 Providers\AppServiceProvider.php 文件中自定义 手机号和身份证号验证 // AppServiceProvider.php 文件 <?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\DB; class AppServicePr
name = input("请输入你的名字:") id = input("请输入你的身份证号码:") year = id[6:10] month = id[10:12] day = id[12:14] sex = id[16:17] sex = int(sex) if sex % 2 : sex = '男' else : sex = '女' print("%s 你是%s,你的生日:%s年是%s月%s日."%(name,sex,year,month
import math n = 0 for a in range(1,49): for b in range(a,49): c = math.ceil(math.sqrt(a**2+b**2)) if c<50 and c**2 == a**2 + b**2: if(n%6 == 0): print("%2d,%2d,%2d"%(a,b,c),end='\t') n+=1 n = 0 for a in range(1,49): for b in range(a,49): for