python - 我想重复我的代码 x 时间我该怎么办?
问题描述
import time
import ctypes
for count in (3000):
def Mbox(title, text, style):
return ctypes.windll.user32.MessageBoxW(0, text, title, style)
Mbox('Virus detected', 'Would you like to run your anti-viruse software?',6)
解决方案
这对你有用。
import time
import ctypes
def Mbox(title, text, style):
return ctypes.windll.user32.MessageBoxW(0, text, title, style)
for count in range(3000):
print(Mbox('Virus detected', 'Would you like to run your anti-viruse software?',6))
推荐阅读
- swift - Filter json to exclude value not in enum case
- pandas - pd.DataFrame 削减小数的尾数
- ipaf - 在 GitLab 中执行 PAF 测试脚本
- linux - 如何在 Linux 上使用系统范围的信号量?
- c# - 将应用程序表单程序转换为插件
- powershell - 如何将 ArrayList 传递给在远程机器上运行的 Invoke-Command
- laravel - 可以将回复的电子邮件表单电子邮件应用程序(例如:gmail)保存到 Web 应用程序数据库吗?
- sql - 如何让这个 sql 代码在谷歌大查询中工作?
- python - 如何在列表中打印出正确的答案
- sql - 将一个表中的名称与另一表中的名称匹配