• mengwu1
    了解作者
  • Python
    开发工具
  • 93KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 0
    下载次数
  • 2020-04-30 09:44
    上传日期
使用python编写的随机生成四则运算程序,方便进行扩展
2-1.zip
  • 2-1.py
    1KB
  • 2-1.docx
    114.9KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/62724c2fd973ef42a472752f/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/62724c2fd973ef42a472752f/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">&#20351;<span class="_ _0"></span>&#29992;<span class="_ _0"></span><span class="ff2">+,-,*,/,**<span class="_ _0"></span></span>&#36816;<span class="_ _0"></span>&#31639;<span class="_ _0"></span>&#31526;<span class="_ _0"></span>&#21644;<span class="_ _0"></span>&#25968;<span class="_ _0"></span>&#23383;<span class="_ _1"> </span><span class="ff2">2,3,4,5<span class="_ _0"></span></span>&#65292;<span class="_ _0"></span>&#26500;<span class="_ _0"></span>&#36896;<span class="_ _0"></span>&#19968;<span class="_ _0"></span>&#20010;<span class="_ _0"></span>&#34920;<span class="_ _0"></span>&#36798;<span class="_ _0"></span>&#24335;<span class="_ _0"></span>&#65292;<span class="_ _0"></span>&#35813;<span class="_ _0"></span>&#34920;<span class="_ _0"></span>&#36798;<span class="_ _0"></span>&#24335;</div><div class="t m0 x1 h3 y3 ff1 fs0 fc0 sc0 ls0 ws0">&#20013;&#19978;&#36848;<span class="_ _2"> </span><span class="ff2">4<span class="_ _2"> </span></span>&#20010;&#25968;&#23383;&#21644;<span class="_ _2"> </span><span class="ff2">3<span class="_ _3"> </span></span>&#31181;&#36816;&#31639;&#31526;&#21508;<span class="_ _0"></span>&#29992;&#19968;&#27425;&#65292;&#20351;&#24471;&#34920;&#36798;&#24335;&#30340;<span class="_ _0"></span>&#32467;&#26524;&#20026;<span class="_ _2"> </span><span class="ff2">24</span>&#65292;</div><div class="t m0 x1 h3 y4 ff1 fs0 fc0 sc0 ls0 ws0">&#25171;&#21360;&#20986;&#28385;&#36275;&#26465;&#20214;&#30340;&#34920;&#36798;&#24335;&#12290;</div><div class="t m0 x1 h3 y5 ff1 fs0 fc0 sc0 ls0 ws0">&#25552;<span class="_ _0"></span>&#31034;&#65306;<span class="_ _0"></span>&#65288;<span class="_ _0"></span><span class="ff2">1</span>&#65289;<span class="_ _0"></span>&#26500;<span class="_ _0"></span>&#24314;&#34920;<span class="_ _0"></span>&#36798;&#24335;<span class="_ _0"></span>&#23383;&#31526;<span class="_ _0"></span>&#20018;<span class="_ _0"></span>&#65292;&#28982;<span class="_ _0"></span>&#21518;&#29992;<span class="_ _0"></span>&#20869;<span class="_ _0"></span>&#32622;&#20989;<span class="_ _0"></span>&#25968;<span class="_ _4"> </span><span class="ff2">eval<span class="_ _2"> </span></span>&#35745;<span class="_ _0"></span>&#31639;&#35813;<span class="_ _0"></span>&#23383;&#31526;</div><div class="t m0 x1 h3 y6 ff1 fs0 fc0 sc0 ls0 ws0">&#20018;&#65292;&#20363;&#22914;<span class="_ _2"> </span><span class="ff2">eval('3*4/2+5')</span>&#36820;&#22238;<span class="_ _3"> </span><span class="ff2">11.0<span class="_ _0"></span></span>&#65307;&#65288;<span class="ff2">2</span>&#65289;&#20004;&#23383;&#31526;&#20018;&#21487;&#36890;&#36807;&#8221;<span class="_ _0"></span><span class="ff2">+&#8221;</span>&#36830;</div><div class="t m0 x1 h3 y7 ff1 fs0 fc0 sc0 ls0 ws0">&#25509;<span class="_ _0"></span>&#25104;<span class="_ _0"></span>&#19968;<span class="_ _0"></span>&#20010;&#23383;<span class="_ _0"></span>&#31526;<span class="_ _0"></span>&#20018;<span class="_ _0"></span>&#65292;<span class="_ _0"></span>&#22914;<span class="_ _0"></span>&#8217;<span class="_ _0"></span><span class="ff2">he&#8217;+&#8217;llo&#8217;<span class="_ _0"></span></span>&#20250;<span class="_ _0"></span>&#24471;<span class="_ _0"></span>&#21040;<span class="_ _0"></span>&#8217;<span class="_ _0"></span><span class="ff2">hello&#8217;<span class="_ _0"></span></span>&#65307;<span class="_ _0"></span>&#65288;<span class="_ _0"></span><span class="ff2">3<span class="_ _0"></span></span>&#65289;<span class="_ _0"></span>&#26412;&#39064;<span class="_ _0"></span>&#20851;<span class="_ _0"></span>&#38190;<span class="_ _0"></span>&#22312;<span class="_ _0"></span>&#20110;</div><div class="t m0 x1 h3 y8 ff1 fs0 fc0 sc0 ls0 ws0">&#27714;&#25490;&#21015;&#65292;&#25490;&#21015;&#21487;&#20197;&#26377;&#22810;&#31181;&#23454;&#29616;&#26041;&#27861;&#65292;&#20363;&#22914;&#37319;&#29992;&#24490;&#29615;&#12290; </div><div class="t m0 x1 h3 y9 ff1 fs0 fc0 sc1 ls0 ws0">&#23454;&#39564;&#25351;&#23548;&#65306;</div><div class="t m0 x1 h3 ya ff1 fs0 fc0 sc0 ls0 ws0">&#65288;<span class="ff2">1</span>&#65289;<span class="_ _5"> </span>&#23545;<span class="_ _3"> </span><span class="ff2">4<span class="_ _3"> </span></span>&#20010;&#25968;&#23383;&#36827;&#34892;&#20840;&#25490;&#21015;&#65292;&#33719;&#24471;&#25152;&#26377;&#25490;&#21015;&#21015;&#34920;</div><div class="t m0 x1 h3 yb ff1 fs0 fc0 sc0 ls0 ws0">&#65288;<span class="ff2">2</span>&#65289;<span class="_ _5"> </span>&#23545;&#36816;&#31639;&#31526;&#36827;&#34892;&#25490;&#21015;&#65292;&#33719;&#24471;<span class="_ _3"> </span><span class="ff2">3<span class="_ _3"> </span></span>&#31181;&#36816;&#31639;&#31526;&#30340;&#25152;&#26377;&#25490;&#21015;&#21015;&#34920;</div><div class="t m0 x1 h3 yc ff1 fs0 fc0 sc0 ls0 ws0">&#65288;<span class="ff2">3</span>&#65289;<span class="_ _5"> </span>&#23545;<span class="_ _0"></span>&#27599;<span class="_ _0"></span>&#19968;<span class="_ _0"></span>&#39033;&#25968;<span class="_ _0"></span>&#23383;<span class="_ _0"></span>&#25490;<span class="_ _0"></span>&#21015;<span class="_ _0"></span>&#21644;<span class="_ _0"></span>&#27599;&#19968;<span class="_ _0"></span>&#39033;<span class="_ _0"></span>&#36816;<span class="_ _0"></span>&#31639;<span class="_ _0"></span>&#31526;<span class="_ _0"></span>&#25490;<span class="_ _0"></span>&#21015;<span class="_ _0"></span>&#65292;&#32452;<span class="_ _0"></span>&#21512;<span class="_ _0"></span>&#25104;<span class="_ _0"></span>&#34920;<span class="_ _0"></span>&#36798;<span class="_ _0"></span>&#24335;&#23383;<span class="_ _0"></span>&#31526;</div><div class="t m0 x2 h3 yd ff1 fs0 fc0 sc0 ls0 ws0">&#20018;</div><div class="t m0 x1 h3 ye ff1 fs0 fc0 sc0 ls0 ws0">&#65288;<span class="ff2">4</span>&#65289;<span class="_ _5"> </span>&#21033;<span class="_ _0"></span>&#29992;<span class="_ _0"></span>&#20869;<span class="_ _0"></span>&#32622;<span class="_ _0"></span>&#20989;<span class="_ _0"></span>&#25968;<span class="_ _1"> </span><span class="ff2">eval<span class="_ _2"> </span></span>&#35745;<span class="_ _0"></span>&#31639;<span class="_ _0"></span>&#34920;<span class="_ _0"></span>&#36798;<span class="_ _0"></span>&#24335;<span class="_ _0"></span>&#23383;<span class="_ _0"></span>&#31526;<span class="_ _0"></span>&#20018;<span class="_ _0"></span>&#65292;<span class="_ _0"></span>&#22914;<span class="_ _0"></span>&#26524;<span class="_ _0"></span>&#20540;<span class="_ _0"></span>&#20026;<span class="_ _4"> </span><span class="ff2">24<span class="_ _0"></span></span>&#65292;<span class="_ _0"></span>&#21017;<span class="_ _0"></span>&#25226;</div><div class="t m0 x2 h3 yf ff1 fs0 fc0 sc0 ls0 ws0">&#34920;&#36798;&#24335;&#25171;&#21360;&#20986;&#26469;</div><div class="t m0 x1 h3 y10 ff1 fs0 fc0 sc1 ls0 ws0">&#21442;&#32771;&#20195;&#30721;&#65306;</div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • Python3
      Python3
    • 深入Python3
      python3是不兼容python2的,变化比较大,学习python3可以一步到位。这本书非常容易理解,让学习变为享受。
    • Python3读取Excel
      Python读取Excel,Python3的xlrd库,对于一个Python3新手来说,无法直接在Python里操作Excel比较麻烦,好在有现成的库可以使用,亲测可用!
    • PythonBasics3
      PythonBasics3
    • python3HardWay
      python3HardWay
    • python3 简明教程
      简明 Python 教程 《A Byte of Python》是一本由 Swaroop C H 编写,旨在于介绍如何使用 Python 语言进行编 程的自由图书。它以教材与指南的形式为入门者介绍 Python 语言。如果你对电脑知识的了解 仅限于如何保存...
    • Dive into Python 3
      如果喜欢Python就下载吧,讲得很不错,深入浅出。
    • python3 webapp
      廖雪峰 基于python3 webapp 开发源码,共大家下载学习,
    • Python3-review
      Python3审查
    • Dive into Python3
      Dive into Python3 很不错哦,有中文的就更好了。