为什么不执行我的伪代码?

问题描述 投票:0回答:1
#Start

 #input
     #display a prompt and from keyboard into varible num1
     input "Store Name" into Store #imput 1
     display "Store Name" + Store #display var num1

      #display a promt from keyboard into variable num2
      input "Coffee Type" into Coffee  #input 2
      display "Coffee Type" + Coffee

       #display a prompt and from keyboard into varible num3
        input "5" into Pounds
        display "5lb" + Pounds

        #processing section
            Total= Pounds x 1.25 # add inputs
            display= 6.25 #total cost
        #output section
             display "total is" + total #display message and total
#End
#EOP










#End
python oop pseudocode
1个回答
0
投票
您需要以python的方式编写它:

print("Store Name"+input("Store Name"))

或者让Python的interpeter通过编写Interpeter来理解它,该Interpeter读取您的伪代码并使用Python的代码运行它
© www.soinside.com 2019 - 2024. All rights reserved.