当前位置: 首页 /  Python源码

python快速生成密码文件源码

import itertools as itswords = "1234567890"r = its.product(words,repeat=2)#生成的倍数dic = open("pass.txt","a") #保存在文件中for i in r:    dic.write("".join(i)

python下载百度音乐的方法一:单一歌曲下载

import requestsresponse = requests.get("http://audio04.dmhmusic.com/71_53_T10041175474_128_4_1_0_sdk-cpm/cn/0206/M00/2C/85/ChR461pkdXWAT81rADgAUtKv2jc614.mp3?xc

python猜数字游戏源码

import randomnumber = int(input("请输入0-9之间的数字"))secret = random.randint(0,9)if number == secret:    print("恭喜你,答对了")else:    print("抱歉,答错了")