帮助追加和删除 [英] help with append and delete
问题描述
大家好。新的python以及这个论坛,但我必须说我已经学会了但已经阅读了一些帖子。在这里似乎是一个非常有用的社区。
在我发布问题之前,生病给你一些背景知识。我已经在Basic,VB和一点C做过编程。我不是一个程序员,更多的是业余爱好/好奇心。
以下代码不是我的,我正在尝试修改模拟数据库的模板。数据库中的选项为0.退出1.查询2.追加。 3删除。我试图在这里使用函数,它们被定义在程序的顶部。代码如下:
我认为它最好为你的数据库使用字典。
展开 | 选择 | 换行 | 行号
我看到你在这里说的是什么,但是这段代码已经写好了。我试图修改别人的代码并用已经给出的东西创建函数。
这里是开始...
展开 | 选择 | Wrap | 行号跨度>
Hello everyone. New to python as well as this forum, but i must say ive learned a but already reading through some posts. Seems to be a pretty helpful community here.
Before i post a question ill give you a little background. I have done programming in the past in Basic, VB, and a little C. I am not much of a programmer, its more of a hobby/curiosity.
The following code is not mine, i am trying to modify a template of a mock database. The options in the database are 0. Exit 1. Query 2. Append. 3 Delete. I am trying to use functions here, and they are defined at the top of the program. the code is as follows:
Expand|Select|Wrap|Line Numbers解决方案I think it would be better to use a dictionary for your database.
Expand|Select|Wrap|Line Numbers
I see what you are saying here, but this code was already written. I am trying to modify someone elses code and create functions with what is already give.
Here''s a start...
Expand|Select|Wrap|Line Numbers
这篇关于帮助追加和删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆