Tag:translate

  • Why do you study go?

    Time:2020-5-3

    Why should you learn go? Original author: keval Patel Translation from: Nuggets translation plan Permanent link to this article: https://github.com/xitu/gold-miner/blob/master/todo1/why-should-you-learn-go.md Translator: Master situ Checked by: tokenjan, Jack eggie Why do you study go? “Go will be the server language of the future.” — Tobias Lütke, Shopify In the past few years, there has been a […]

  • How to use translate and transition in CSS3

    Time:2020-4-28

    Translate and transition have always made me think that they are very powerful and can’t learn. In fact, they are quite resistant to understand them. The interface has seen the document for less than half an hour, and they have probably understood it. Here is an example. You can download it and run it yourself […]

  • Analysis of the differences and functions among transition, transform and translate in CSS3

    Time:2020-4-27

    Transform and translate Transform refers to transformation and deformation. It is an attribute of CSS3, just like other width and height attributes Translate is the attribute value of transform, which refers to 2D transformation of elements. 2D transformation refers to how much elements move in the current position (0,0) in the direction of X axis […]

  • Flash tutorial HTTP method

    Time:2019-12-11

    HTTP protocol is the foundation of data communication in the world wide web. In this protocol, different methods can be used to obtain data for the same URLSeveral different HTTP methods are shown below GETThe most common method is to send unencrypted information to a server HEADThis method is the same as get except that […]

  • Flash tutorial template

    Time:2019-12-9

    We can make functions bound to a URL return HTML. For example, in the following code,hello()The function returns the<h1>Hello World string of the package from flask import Flask app = Flask(__name__) @app.route(‘/’) def index(): return ‘<html><body><h1>Hello World'</h1></body></html>’ if __name__ == ‘__main__’: app.run(debug = True) But you can see that it’s stupid to directly return HTML […]

  • Flash tutorial — static files

    Time:2019-12-7

    A web application often needs static files such as JavaScript or CSS to help the web page better display the content. Usually, the web server is used to provide this static file service, but in the development stage of the flag program, these files need to be placed in the static folder under the root […]

  • Flash tutorial — request object

    Time:2019-12-6

    In flask, the request sent by the web page is transferred to the server and transformed into a global request object. In order to process the request object, we need to reference it from the flask package.The important properties of the request object are as follows: formThe key value pairs of this dictionary object represent […]

  • Flash tutorial — send form data to template

    Time:2019-12-5

    As we have seen before, in flask, we can specify HTTP methods for URL rules, and the corresponding functions can receive form data in the form of dictionaries, and then deliver the data to the template and finally render it as a web page In the following example, the URL ‘/’ renders a web page […]

  • Some new postures of ES6

    Time:2019-12-5

    Original: Javascript ES6 – (Exploring the new built in methods) Object property assignment When dealing with objects, you may need to combine multiple objects, new Object.assign()Functions can do this succinctly. Object merging Our goal is to combine the objects of 2-4 lines into one object. In Es5, you need to loop several objects and assign […]

  • Flash tutorial cookie

    Time:2019-12-4

    Cookie is a kind of data stored in the client computer in the form of text. Its function is to record and track the data used by the client for statistics and better user experience The global request object of flask contains the cookie attribute, which is a dictionary object. Its key value pair is […]

  • Flash tutorial – redirection and errors

    Time:2019-12-3

    The flask class has oneredirect()Method. When we call it, it returns a response object and redirects the user to another location with the specified status code redirect()The prototype of the method is as follows: Flask.redirect(location, statuscode, response) In the above function, locationThe URL Location we want to redirect statuscodeThe status code will be sent to […]

  • Flash tutorial – Session

    Time:2019-12-2

    Unlike cookies, session data is stored on the server. Session refers to the time period between login and logout of a client on a web service. Session data that needs to be stored in a session is stored in a temporary directory on the server Each session is assigned a session ID, the session data […]