我在这里指出另一个Python文件,如果answer == yes,它会继续 [英] What do I put here to point to another Python file where it continues if answer == yes

查看:165
本文介绍了我在这里指出另一个Python文件,如果answer == yes,它会继续的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

---------- new.py





  if  name ==   mike
answer = input( 我可以称你为mikey吗?:
if answer == yes
answer = input( 是你的昵称?:
如果 answer == yes



<<<<<<<<<<我可以提供什么<<<<<<<<<<





- ---------- page1.py



<<<<<<<<<跳到这里<<<<<<<<<

 answer = input(  您还有其他名称:
如果回答== yes
answer = input( 它们是什么?





我尝试了什么:



我试过这个

Python Programming Tutorial - 29 - Classes and Objects - YouTube [ ^ ]

解决方案

 answer = input( 是你的昵称?:
如果 answer == yes
import thenextpythonscript


----------new.py


if name == "mike":
        answer = input("can i call you mikey?: ")
        if answer == "yes":
            answer = input("is that your nickname?: ")
            if answer == "yes":


<<<<<<<<< WHAT CAN I PUT HERE <<<<<<<<<<


-----------page1.py

<<<<<<<< TO JUMP HERE<<<<<<<<<

answer = input("do you have any other names: ")
if answer == "yes":
    answer = input ("what are they?")



What I have tried:

I have tried this
Python Programming Tutorial - 29 - Classes and Objects - YouTube[^]

解决方案

answer = input("is that your nickname?: ")
if answer == "yes":
    import thenextpythonscript


这篇关于我在这里指出另一个Python文件,如果answer == yes,它会继续的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆