Python in the browser: Brython

Introduction Convert Python code to JavaScript, allowing us to write and run Python code in the browser. It is possible to realize that python and js codes can call each other. Based on Python 3 implementation, supports HTML5 environment (providing DOM objects and event interfaces). Supports turtle drawing library, which can draw images. Brython will […]

How to find and delete duplicate rows in MySQL?

How to find duplicate rows The first step is to define what rows are duplicates. Most of the time it’s simple: some of their columns have the same values. This example uses this definition. Maybe your definition of “repeat” is very complicated and you need to make some modifications to the sql. Data samples to […]

antd-vue + vue3 realizes the dynamic addition and deletion of rows in a-table, and implements in-row input verification in a-table through a-from

1. Renderings Figure 1: Verification effect 2. Main code Note: 1. The form and table are bound to the same data tableSource and it is a data (ElementUI requires an object package array) 2. The form uses name binding -> :name=”[index, ‘vlan_id’]” 3. Form-item always needs to add rules -> :rules=”rules.blur” <a-form ref=”tableFormRef” :model=”tableSource” :label-col=”{ […]

Python in the browser: Brython

Introduction Convert Python code to JavaScript, allowing us to write and run Python code in the browser. It is possible to realize that python and js codes can call each other. Based on Python 3 implementation, supports HTML5 environment (providing DOM objects and event interfaces). Supports turtle drawing library, which can draw images. Brython will […]

Browser processes and threads

This article is full of definitions and copywriting explanations, which is relatively boring, but as long as you read it a few times, I believe it will bring you unexpected gains. 1. The concepts of processes and threads First we need to know the concepts of threads and processes: Process: The basic unit of CPU […]

SpringBoot-WebSocket browser-server two-way communication

Article directory Introduction to WebSockets Getting Started Case WebSocket Introduction WebSocket is a new network protocol based on TCP. It realizes full-duplex communication between the browser and the server – the browser and the server only need to complete a handshake, and a persistent connection can be created between the two and bidirectional data transmission […]

It takes 21 seconds to insert 10,000 rows of data using the pd.DataFrame.to_sql method

to_sql is the method used in Pandas to write DataFrame data to the database. It can convert DataFrame into SQL statements, which facilitates us to store the data in the database for subsequent operations. The to_sql method contains multiple parameters. The more commonly used parameters are name (table name), con (database connection object), if_exists (if […]

How to choose a web browser that suits you? -2023

What are the commonly used web browsers? The browsers used on computers usually also have mobile versions. The web browser is the interface of the Internet, the most basic and core human-computer interaction application. Personal conclusion: Take mainland china as an example: edge>firefox>opera>chrome Turn off unnecessary features Turn off data collection Not gorgeous segmentation The […]