猫史档案馆


【Python作品分享】c++模拟V0.0【作品秀】

用户:LAG的1048576一枚LAG的1048576一枚查看:0 回复:1 评论:0 创建时间:2020-05-01T11:22:06


【作品展示】

center_image

 

【作品介绍】

未完成

 

【作品源代码】

# -*- coding = utf-8 -*-
print("cpp IDE by Python,CopyRight By 2020")
code = []
while True:
    c = input("Code->")
    if c == "run":
        break
    else:
        code.append(c)
for i in code:
    if i.replace(" ","")[:7] == "cout<<\"":
        print(i[7:i.find("\"",8)],end = "")
        if i.endswith("endl"):
            print()
    else:
        print("暂不支持的语法:",i)

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
星空之忆星空之忆

……………………………………………………………………………………

点赞0


评论