编程语言
首页 > 编程语言> > python 程序跑完提示

python 程序跑完提示

作者:互联网

声音

import winsound

duration = 5000  # 持续时间以毫秒为单位,这里是5秒
freq = 440  # Hz
winsound.Beep(freq, duration)   #叮~~~
import winsound

try:
    k=i+l  #这里明显不对

except:
    print('出错啦,快来看看我!')
    duration = 5000
    freq = 440
    winsound.Beep(freq, duration)

邮箱

import yagmail
 
print('hello world')

# 登录你的邮箱
yag = yagmail.SMTP(user = 'xxxxxxxx@qq.com', password = 'your password', host = 'smtp.qq.com')

# 发送邮件
yag.send(to = ['your receive e-mail'], subject = '主题', contents = ['内容','C:\1.txt'])

标签:python,程序,Beep,提示,winsound,duration,import,freq,your
来源: https://blog.csdn.net/weixin_41642203/article/details/119142307