根据来自另一个列表Python的字符串,仅输出txt文件中的特定项目

问题描述

我有一个字符串列表:

myStrings = [Account,Type,myID]

我还有一个txt filenumbers与这些字符串相关联,例如:

[90: 'Account',5: 'Type',6: 'MyID',8: 'TransactionNum',9: 'Time']

如何打印only the numbers and strings in the txt file的{​​{1}}。例如,自in myStrings起,我'Time' is not in myStrings。我也想做这个do not want to print it

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)