我想让这个 prolog 文件成为独立的 EXE 文件

2024-01-01

我是 prolog 新手,我已经编写了这段代码,但我想让这个 prolog 文件成为一个独立的 EXE 文件,但我不知道如何去做。我正在使用 swi-prolog 来查阅该文件。我需要使用 swi-prolog 使该程序可执行的分步教程。我将其保存为“computer.pl”,下面是代码。

main :- identify.

identify :-
  write('Welcome to Micro-Computer troubleshooting'),
  nl,
  write('Please do not forget to type all your answers with a period(.) in the end'),
  nl,
  retractall(known(_,_,_)),            % clear stored information
  diagnosis(X),
  nl,
  write('The problem is:  '),
  nl,
  writeListByLine(X).
identify :-
  nl,
  write('I can not identify the problem').

writeListByLine([]).
writeListByLine([H|T]) :-                 % write answers in newline
  write(H),
  nl,
  writeListByLine(T).

%%%%%%%%%%%%%%%%%%%%%%%% Audio Sound Card not detected %%%%%%%%%%%%%%%%%%

diagnosis(['damaged sound card']) :-
  problem('Audio Sound Card not detected'),
  nl,
  write('>> remove damaged sound card and replace with a new sound card <<'),
  nl,
  question_1('is the sound card working?').

diagnosis(['sound card not installed']) :-
 problem('Audio Sound Card not detected'),
 nl,
 write('>> install new sound card <<'),
 nl,
 question_2('can your computer detect the new sound card?').

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Audio Driver Warning %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

diagnosis(['driver conflict']) :-
  problem('Audio Driver Warning'),
  nl,
  write('>> uninstall previous audio drivers <<'),
  nl,
  question_1('is the audio driver working now?').

diagnosis(['incompatable audio driver']) :-
 problem('Audio Driver Warning'),
 nl,
 write('>> install the appropriate audio driver for your computer <<'),
 nl,
 question_2('is your computer still showing driver Warning?').

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Scratchy Sound %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

diagnosis(['signal interference']) :-
  problem('Scratchy Sound'),
  nl,
  write('>> stay away from radio frequency sources <<'),
  nl,
  question_1('is the sound working fine now?').

diagnosis(['bad speaker']) :-
  problem('Scratchy Sound'),
  nl,
  write(' >> connect a ear phone to the computer <<'),
  nl,
  question_2('is the ear phone giving scratchy sound also?').

diagnosis(['bad speaker']) :-
  problem('Scratchy Sound'),
  nl,
  write('>> replace speaker <<'),
  nl,
  question_3('it should be working fine now ?').

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Num lock stays off at startup %%%%%%%%%%%%%%%%%%%%%%%%%

diagnosis(['num lock shut off in BIOS']) :-
  problem('Num lock stays off at startup'),
  nl,
  write('>> turn on num lock in BIOS <<'),
  nl,
  question_1('does num lock on at startup?').

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Invalid Drive Specification Error %%%%%%%%%%%%%%%%%%%%%%%%%

diagnosis(['drive not yet formatted']) :-
  problem('Invalid Drive Specification Error'),
  nl,
  write('>> format your drive <<'),
  nl,
  question_1('does your drive shows the drive letter?').

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Mouse Pointer Jerks Onscreen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

diagnosis(['mouse ball or rollers are dirty']) :-
  problem('Mouse Pointer Jerks Onscreen'),
  nl,
  write('>> clean mouse mechanism <<'),
  nl,
  question_1('does the mouse still jerks on onscreen?').

diagnosis(['damaged mouse']) :-
 problem('Mouse Pointer Jerks Onscreen'),
 nl,
 write('>> connect the mouse to another computer <<'),
 nl,
 write('>> replace mouse <<'),
 nl,
 question_2('does the mouse still jerks on onscreen?').

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%% System Cant find my Hard Drive %%%%%%%%%%%%%%%%%%%%%%%

diagnosis(['boot priority error']) :-
 problem('System Cant find my Hard Drive'),
 nl,
 write('>> set hard drive as the first booting device <<'),
 nl,
 question_1('does your hard drive now load at startup?').

diagnosis(['crashed hard drive']) :-
 problem('System Cant find my Hard drive'),
 nl,
 write('>> insert another hard drive to your computer,if the hard drive load at startup then previous hard drive has crashed <<'),
 nl,
 question_2('does your system recognize the hard drive?').

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%% Random shutdown when working on computer %%%%%%%%%%%%%%%

diagnosis(['over heating']) :-
 problem('Random shutdown when working on computer'),
 question_1('does your computer get very hot when working?').

diagnosis(['dusty vent']) :-
 problem('Random shutdown when working on computer'),
 question_2('is their blockage or dust in the system vent?').

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%% computer freezes randomly %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

diagnosis(['hard drive is full']) :-
 problem('computer freezes randomly'),
 question_1('is your hard drive full').

diagnosis(['system RAM is faulty']) :-
 problem('computer freezes randomly'),
 question_2('does your system shows blue-screen errors at startup?').

diagnosis(['bad hard drive']) :-
 problem('computer freezes randomly'),
 question_3('does your hard drive make loud noise?').

diagnosis(['bad hard drive']) :-
 problem('computer freezes randomly'),
 question_4('does your computer boot slowly?').

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%% Blue-screens %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

diagnosis(['Bad memory modules']) :-
 problem('Blue-screens'),
 nl,
 write('>> check memory with memtester and see if you get errors <<'),
 nl,
 write('>> if you do get errors and have more than one slots occupied <<'),
 nl,
 write('>> then test one by one and see if it works <<'),
 nl,
 question_1('did the test work?').

diagnosis(['corrupt drivers installed']) :-
 problem('Blue-screens'),
 nl,
 write('>> perform system restore to uninstall the corrupted drivers <<').

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%% Monitor is blank %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

diagnosis(['no power to monitor']) :-
 problem('Monitor is blank'),
 question_1('check if the monitor connected to power source?').

diagnosis(['monitor not connected to computer']) :-
 problem('Monitor is blank'),
 question_2('is the monitor connected to the CPU?').

diagnosis(['screen-saver enabled']) :-
 problem('Monitor is blank'),
 question_3('check if screen-saver is enabled').

diagnosis(['display card not connected']) :-
 problem('Monitor is blank'),
 question_4('is display card connected?').








%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%% This is where the asking starts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
problem(X):- menuask(problem,X,['Audio Sound Card not detected',
                'Audio Driver Warning', 'Scratchy Sound',
                'Num lock stays off at startup','Invalid Drive Specification Error',
              'Mouse Pointer Jerks Onscreen', 'System Cant find my Hard Drive', 'Random shutdown when working on computer',
               'computer freezes randomly', 'Blue-screens', 'Monitor is blank']).           % shows menu
question_1(X):- ask(question_1,X).
question_2(X):- ask(question_2,X).
question_3(X):- ask(question_3,X).
question_4(X):- ask(question_4,X).
question_5(X):- ask(question_5,X).
question_6(X):- ask(question_6,X).
question_7(X):- ask(question_7,X).
question_8(X):- ask(question_8,X).
question_9(X):- ask(question_9,X).
question_10(X):- ask(question_10,X).
question_11(X):- ask(question_11,X).
question_12(X):- ask(question_12,X).

% "ask" only deals with simple yes or no answers. a "yes" is the only
% yes value. any other response is considered a "no".

ask(Attribute,Value):-
  known(yes,Attribute,Value),       % succeed if we know its true
  !.                                % and dont look any further
ask(Attribute,Value):-
  known(_,Attribute,Value),         % fail if we know its false
  !, fail.

ask(Attribute,_):-
  (known(yes,Attribute,_)),           % fail if we know its some other value.
  !, fail.                          % the cut in clause #1 ensures that if
                                    % we get here the value is wrong.
ask(A,V):-
  write(A:V),                       % if we get here, we need to ask.
  write('? (yes or no): '),
  read(Y),                          % get the answer
  asserta(known(Y,A,V)),            % remember it so we dont ask again.
  Y = yes.                          % succeed or fail based on answer.

% "menuask" is like ask, only it gives the user a menu to to choose
% from rather than a yes on no answer.

menuask(Attribute,Value,_) :-
  known(yes,Attribute,Value),       % succeed if we know
  !.
menuask(Attribute,_,_) :-
  known(yes,Attribute,_),           % fail if its some other value
  !, fail.

menuask(Attribute,AskValue,Menu):-
  nl,write('What is the '),write(Attribute),write('?'),nl,
  display_menu(Menu),
  write('Enter the number of choice> '),
  read(Num),nl,
  pick_menu(Num,AnswerValue,Menu),
  asserta(known(yes,Attribute,AnswerValue)),
  AskValue = AnswerValue.           % succeed or fail based on answer

display_menu(Menu) :-
  disp_menu(1,Menu), !.             % make sure we fail on backtracking

disp_menu(_,[]).
disp_menu(N,[Item | Rest]) :-        % recursively write the head of
  write(N),write(' : '),write(Item),nl, % the list and disp_menu the tail
  NN is N + 1,
  disp_menu(NN,Rest).

pick_menu(N,Val,Menu) :-
  integer(N),                       % make sure they gave a number
  pic_menu(1,N,Val,Menu), !.        % start at one
  pick_menu(Val,Val,_).             % if they didn't enter a number, use
                                    % what they entered as the value

pic_menu(_,_,none_of_the_above,[]). % if we've exhausted the list
pic_menu(N,N, Item, [Item|_]).      % the counter matches the number
pic_menu(Ctr,N, Val, [_|Rest]) :-
  NextCtr is Ctr + 1,               % try the next one
  pic_menu(NextCtr, N, Val, Rest).

由于您的代码在快速阅读时看起来很容易移植,因此您可以使用 GNU Prolog 生成一个.exe从中获取文件。假设代码保存在名为foo.pl,你可以使用GNU Prologgplc用于生成可执行文件的命令行实用程序:

$ gplc --no-top-level -o foo.exe foo.pl

但首先您需要将以下指令添加到文件顶部的代码中:

:- initialization(main).
:- dynamic(known/3).

The gplc如果没有,实用程序将报告错误dynamic/1指示。跑步foo.exe将打印:

$ ./foo.exe
Welcome to Micro-Computer troubleshooting
Please do not forget to type all your answers with a period(.) in the end

What is the problem?
1 : Audio Sound Card not detected
2 : Audio Driver Warning
3 : Scratchy Sound
4 : Num lock stays off at startup
5 : Invalid Drive Specification Error
6 : Mouse Pointer Jerks Onscreen
7 : System Cant find my Hard Drive
8 : Random shutdown when working on computer
9 : computer freezes randomly
10 : Blue-screens
11 : Monitor is blank
Enter the number of choice> 

附: GNU Prolog 是少数几个可以生成真正的 Prolog 编译器之一.exe您可以将该文件分发给其他人,而无需他们也安装 GNU Prolog。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

我想让这个 prolog 文件成为独立的 EXE 文件 的相关文章

  • 如何确定矩阵的所有给定坐标都是相连的?

    给定一个网格 我如何确定网格的元素是否都在单个区域中 在下面的情况下是正确的 因为矩阵中的每个元素都有一个邻居 示例1 gridneighbours 1 1 1 2 1 3 2 1 2 2 2 3 3 1 4 1 4 2 true 然而在我
  • Prolog 中的分配性检查

    假设我有一个等价关系eq 以及多个二元运算符o 1 o 2 o n 我想找出哪些操作分配给其他操作 假设我有一个可以确定两个表达式是否等价的知识库 一个简单的解决方案是输入所有可能的查询 对于左分配性 eq o 1 Z o 1 X Y o
  • Prolog 中的失败谓词有什么用?

    我想不出我需要它的情况 优雅的系统提供false 0作为命令式的声明式同义词fail 0 它有用的一个例子是当您想要手动强制回溯副作用时 例如 between 1 3 N format line w n N false line 1 lin
  • 展平列表

    尝试解决练习 07http www ic unicamp br meidanis courses mc336 2009s2 prolog problemas http www ic unicamp br meidanis courses m
  • 在 Prolog 中编辑 Eliza 聊天机器人

    我一直在努力尝试在 Prolog 中编辑 Eliza 聊天机器人 每次我尝试编辑某些内容时 都会出现新的错误 它是否受到任何形式的编辑保护 我使用 SWI prolog 编辑器进行编辑 问题是我试图在没有完全理解代码的情况下最小化代码 我正
  • 如何使用 Prolog 查找二叉树的深度

    我正在学习 Prolog 并试图找到一个深度二叉树使用 Prolog 我代表一棵树是这样的 nil is a tree tree 1 nil nil this is a leaf tree 1 tree 1 nil nil nil this
  • 将清单嵌入到 exe 文件中

    我有一个 manifest链接到的文件 exe程序文件 以便在打开时要求管理员权限 现在它是一个单独的文件 名为program name exe manifest这是与以下相同的文件夹program name exe 有什么方法可以将清单文
  • DirectX Release 构建可以通过 VS2010 运行,但不能运行 exe

    我已经通过 Google 访问 Stack Overflow 几年了 但到目前为止还没有询问 回答任何问题 所以就到这里吧 基本上 我有一个在 DirectX 11 中设置绘图模型和地形的 3D 渲染框架 一切正常 通过 Visual St
  • 如何在 Python 中运行 .exe 文件

    我正在尝试在 python2 7 中运行 exe 文件 我已经尽了一切努力来搜索它 这是我尝试过的一些代码 subprocess Popen r C Programs Files Internet Explorer iexplore exe
  • 如何在 Prolog 中为变量(如字符串)分配多个值?

    今天早些时候 我寻求帮助以在序言中构建数据库以及如何通过参数搜索 有人提出了这个 您还可以向每个处理器添加术语列表 例如 processor pentium g4400 brand intel family pentium series g
  • Prolog - 从列表中删除具有相同第一个值的对

    我有这样的对象列表 list obj x y obj x z obj a b obj b c 我想删除那些共享相同第一个值的元素 这样我就可以使用修改后的列表 在这种情况下 最终列表将如下所示 list obj a b obj b c 有人
  • 如何从序言中的列表中删除列表?

    我想在序言中实现以下问题 Given L1 1 2 3 4 and L2 2 3 4 调用名为remove list L1 L2 L 的函数将从L1中删除L2 所以L将是 1 但是 如果第二个列表的元素与 L1 中的元素顺序不同 或者更准确
  • 如何在Prolog中编写cmp_list/3函数?

    Write a predicate cmp list 3 the first 2 arguments are 2 lists and the last one is Comparison which means ge lt le or gt
  • Prolog 管线任务

    我有一项任务是在序言中制作一张简化的地铁地图 其中一部分要求制定一项规则来检查两个车站是否在同一条线上 我有一条规则 但它似乎不起作用 这就是我到目前为止所拥有的 adjacent nh lg central 4 adjacent lg o
  • 在 EXE 文件末尾写入字节安全吗?

    我听说如果我们在 EXE 文件末尾附加一些字节 它仍然可以正常工作 在所有情况下都是如此吗 这是一种安全的方法吗 我打算使用程序执行文件中的数据来编写演示 因此它可以是安全的 至少对普通用户而言 并且我不必将数据存储在其他地方 这是不可能用
  • Prolog 中的匹配元组

    为什么Prolog匹配 X Xs 包含更多元素的元组 一个例子 test2 X Xs write X nl test2 Xs test2 X write X nl test
  • 为什么在具体化中将 clpfd 变量分配给实际值?

    我正在开发一个 SWI Prolog 程序 该程序使用 CLP FD 约束来找到特定问题的解决方案 为此 我碰巧需要两个列表的 未定位 重叠 那是 List La长度为A List Lb长度为 B A gt B 未定位的重叠列表是La Lb
  • Prolog 实现 and/2、or/2、nand/2、nor/2、xor/2 [关闭]

    Closed 这个问题需要多问focused help closed questions 目前不接受答案 我想在序言中实现以下谓词并将它们用于真值表 and 2 or 2 nand 2 nor 2 xor 2 也许有人可以告诉我如何实现和
  • 计算序言中列表的排列

    在 序言艺术 第二版中有一个问题 您应该定义一个谓词 Even permutation Xs Ys 和类似的奇数排列 当您查询时 例如 Even permutation 1 2 3 2 3 1 和 odd permutation 1 2 3
  • 如何找到排列的索引

    index List Idx Predicate will get List with permutation and I want to know index of permutation For example index 4 1 3

随机推荐

  • WebDeploy API (IIS 7) - “公共 API”:资源?

    有人知道 WebDeploy API 的任何资源吗 有人用过吗 我尝试在官方论坛上询问 并浏览了该网站 该网站说有 公共 API 但没有链接 文章 资源 博客文章或示例 http forums iis net t 1180561 aspx
  • 单击事件不适用于动态添加的 Li->span->id

    单击事件不适用于动态添加的 Li gt span gt id case 101 strLink li a span Form 101 span a li sidebar nav append strLink break sidebar na
  • 如何将文件夹标记为包?

    我曾经认为文件夹需要有扩展名 以便 Finder 将它们识别为包 该扩展将在所属应用程序的 Info plist 中声明 显然还有另一种更优雅的方式 但我不知道它是如何完成的 例如 iPhoto 图库被 Finder 视为一个包 但它没有扩
  • 为什么更喜欢属性而不是公共变量? [复制]

    这个问题在这里已经有答案了 其他能够对 setter 中的值进行健全性检查是否有更根本的原因来选择属性而不是公共变量 我们以前有过这个主题 但现在找不到任何内容 简而言之 您的需求可能会发生变化 如果现在没有健全性检查 将来可能需要进行健全
  • byte[] 数组的长度

    String str 123456789 byte bytes str getBytes 我想进行以下循环 for int j 0 j lt bytes length j b bytes j b将存储数组的每个字节 但我似乎无法正确获取数组
  • GCE 上没有名为“google.cloud._helpers”的模块

    我在导入时遇到错误google cloud bigquery在普通教育考试上 它不会发生在非 GCE 的环境中 我执行了更新pip 你知道为什么吗 user1 sv1 python Python 3 6 0 Continuum Analyt
  • 如何获取 Ruby on Rails 生成的表单元素 id 以供 JavaScript 中参考?

    当使用form for助手和一个text field调用时 Ruby on Rails 会生成一个唯一的 id
  • eslint 解析错误:意外的标记 =

    为什么 eslint 会抛出这个错误 Javascript 在 React Native 中运行没有问题 该代码取自react navigation 示例 https reactnavigation org docs intro https
  • Qt foreach 中的第二项是否只计算一次?

    如果我有这个代码 foreach QListWidgetItem ii selectedItems urls push back ii gt data Qt ToolTip toString Would selectedItems 只被调用
  • Javascript“eval”是同步还是异步?

    考虑以下代码 eval a 5 b 10 eval a b 如果这里第一个 eval 运行很长时间 我的下一个 eval 是否会返回一个错误 指出 a 和 b 未定义 因为 a 和 b 值在第一个 eval 结束时初始化 eval方法是同步
  • 将 ShowCaseView 与 ActionBarCompat / ActionBarSherlock Android 结合使用

    我在用ShowcaseView图书馆来自here https github com Espiandev ShowcaseView在我的安卓应用程序中 我想用ShowcaseView with Actionbar Compat 但我不知道如何
  • 检索 JSON 对象时出现空指针异常

    我是 JSON 新手 我在用http pnrapi appspot com http pnrapi appspot com 使用 JSON 获取特定列车的状态 但是 在尝试解析接收到的对象时 我总是遇到空指针异常 请帮忙 这是我的代码 pu
  • 下载 Sun java 文档/镜像网站

    我们公司和 Sun 的 javadocs 之间的网络似乎已关闭 我在哪里可以获得给定包的 javadoc 副本 以便我可以保留自己的存储以处理将来的网络中断 有 Sun javadoc 的镜像吗 对于每个主要版本都有一个大型文档包 例如这里
  • 使用 Python 通过代理以编程方式发出 HTTP 请求

    如何使用 Python 通过代理发出 HTTP 请求 我需要对以下代码做什么 urllib urlopen http www google com The urlopen功能支持代理 尝试这样的事情 urllib urlopen your
  • OpenXML 在 Word 文档中查找变量并替换它们

    我需要在文档中搜索 中包含的字符串 因此 如果应用程序在文档中找到该变量 它将用 DateTime Today ToShortDateString 替换该变量 例如 string filename C Temp appNum Receipt
  • 从单个对话框片段获取日期和时间选择器值并将其设置在 EditText 中

    我正在开发一个用户可以设置日期和时间的应用程序 我想在单个对话框片段中设置日期和时间并将其设置为编辑文本 是否可以在 1 个对话框片段中使用日期和时间选择器 如果是的话 你会怎么做 目前我正在从对话框片段中获取时间 然后将其设置为EditT
  • 如何通过 GitHub API 获取 Git 标签中的所有提交

    我必须获取在 Git 存储库上创建新标签时所包含的所有新提交 这需要通过 GitHub API 来完成 例如 Git UI 显示 Tagging Tag1 并且有一个与其关联的 sha 假设 sha 是 SHA1 现在我如何通过 GitHu
  • 无法导入 Tornado 子模块

    首次尝试安装 Tornado 在 EC2 Linux 实例上 我做到了 pip install tornado 然后尝试运行 hello world 示例 http www tornadoweb org en stable hello wo
  • 如何在 Outlook VBA 中保存所选项目

    我想在 Outlook 中保存所选项目 使用下面的代码 我可以保存该项目 但它仅保存第一个项目 而不保存所选项目 我需要更改什么才能保存所选项目 Dim oOlApp As Object objNmSpc As Object ofldr A
  • 我想让这个 prolog 文件成为独立的 EXE 文件

    我是 prolog 新手 我已经编写了这段代码 但我想让这个 prolog 文件成为一个独立的 EXE 文件 但我不知道如何去做 我正在使用 swi prolog 来查阅该文件 我需要使用 swi prolog 使该程序可执行的分步教程 我