太阳集团6138(CHINA)澳门企业-环球百科 /en/tsmaster%e5%b0%8f%e5%8a%9f%e8%83%bd-python%e5%b0%8f%e7%a8%8b%e5%ba%8f%e5%a6%82%e4%bd%95%e5%af%bc%e5%85%a5%e5%a4%96%e9%83%a8%e5%ba%93%ef%bc%9f/ /en/tsmaster%e5%b0%8f%e5%8a%9f%e8%83%bd-python%e5%b0%8f%e7%a8%8b%e5%ba%8f%e5%a6%82%e4%bd%95%e5%af%bc%e5%85%a5%e5%a4%96%e9%83%a8%e5%ba%93%ef%bc%9f/#respond Wed, 23 Aug 2023 08:56:48 +0000 /?p=4858 overview Preface Today we introduce you to the TSMaster feature of how to import external libraries for Python applets. By using the TSMas [...] ...

The post TSMaster小功能—Python小程序如何导入外部库? first appeared on 上海太阳集团6138科技有限公司.

]]>
overviewPreface

Today we are going to introduce how to import external libraries in TSMaster feature of Python applet. It is introduced by importing external libraries under the default parser path of TSMaster so that we can go to use Python external libraries.Installing external libraries under TSMaster's default Python parser..

01 Step 1

Select Open Parser Path in TSMaster Tools->System Information->python Environment Settings;

TSMaster小功能—Python小程序导入外部库

02 Step 2

Type cmd in this file path to open the command line;

TSMaster小功能—Python小程序导入外部库
TSMaster小功能—Python小程序导入外部库

03 Step 3

In this path, use the command Python -m pip install to install external libraries. We install the pandas library and the openpyxl library to test writing text to excel;

TSMaster小功能—Python小程序导入外部库

04 Step 4

Tested using the keystroke events of the Python applet in TSMaster, using the pandas library to write a piece of data to excel.

TSMaster小功能—Python小程序导入外部库
TSMaster小功能—Python小程序导入外部库

05 Step 5

After running the program, press A to launch the key event, and then open the excel file under the path "C:\Users\yujia\Desktop\test.xlsx" to observe that the data has been successfully written.

TSMaster小功能—Python小程序导入外部库

If you need demos or ask other technical questions, you can leave a message on the official website. 

For inquiries, e-mail: sales@tosunai.cn

Service Hotline: 021-59560506

The latest version of TSMaster software is available for free download at: http://www.tosun.tech/TOSUNSoftware/TSMaster_Setup_beta.exe

The post TSMaster小功能—Python小程序如何导入外部库? first appeared on 上海太阳集团6138科技有限公司.

]]>
/en/tsmaster%e5%b0%8f%e5%8a%9f%e8%83%bd-python%e5%b0%8f%e7%a8%8b%e5%ba%8f%e5%a6%82%e4%bd%95%e5%af%bc%e5%85%a5%e5%a4%96%e9%83%a8%e5%ba%93%ef%bc%9f/feed/ 0