Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 从.txt文件或.cs文件读取数据,并使用python更新sql数据库中的文件内容_Python 3.x_Robotframework - Fatal编程技术网

Python 3.x 从.txt文件或.cs文件读取数据,并使用python更新sql数据库中的文件内容

Python 3.x 从.txt文件或.cs文件读取数据,并使用python更新sql数据库中的文件内容,python-3.x,robotframework,Python 3.x,Robotframework,如何为以下示例编写自动化脚本: 表已经可用,只能从.txt文件读取数据,并按顺序更新表列中的数据 例如:file1.txt a、 b,c,b,e DB: 表名:SATYA 栏目名称:1 | 2 | 3 | 4 | 5 更新的数据库应为: 栏目名称:1 | 2 | 3 | 4 | 5 更新值:a b c b e您放置了robotframework标记,因此我猜您希望在python中执行此操作,但从robot调用函数。 为什么要在python中开发此函数,而失去robot的所有抽象? Databas

如何为以下示例编写自动化脚本:

表已经可用,只能从.txt文件读取数据,并按顺序更新表列中的数据

例如:file1.txt a、 b,c,b,e

DB: 表名:SATYA 栏目名称:1 | 2 | 3 | 4 | 5

更新的数据库应为: 栏目名称:1 | 2 | 3 | 4 | 5
更新值:a b c b e

您放置了robotframework标记,因此我猜您希望在python中执行此操作,但从robot调用函数。 为什么要在python中开发此函数,而失去robot的所有抽象? DatabaseLibrary是用来与db一起工作的,从文档中已经可以理解如何制作keword来更新db

链接到具有以下示例的库:

不清楚您想问什么。您尝试过什么,具体哪里有问题?使用JavaScript和Java标记有什么原因吗?如果它们不相关,您能删除它们吗?询问如何使用robot框架在python中编写上述示例的自动化脚本