Tag:Capitalize

  • The first formal and simple composer package – Convert RMB into Chinese uppercase

    Time:2021-10-10

    rmb-capital Some time ago, there was a business need to display the amount in Chinese characters. In case of this problem, we must first find out whether there is ready-made, yes, but it is not too old, or the logic looks vague, which is difficult to understand. Just in time for the weekend, so I […]

  • Detailed explanation of less command usage

    Time:2021-10-4

    Less is used to view files in Linux. It can display the contents of files in a paging manner. Currently, and tail are common commands for viewing files Command format Less [parameter] file 1. Use example less a.txt Used to view files PressforspaceTurn down one pagePressbTurn one page forward In fact, it’s easy to remember […]

  • Golang implements common functions in PHP

    Time:2021-10-3

    # go-to-php The functions commonly used in PHP are encapsulated in golang. In order to distinguish the functions in PHP and go, the functions encapsulated in go to PHP are capitalized in front of the corresponding PHP functionsP。PallordExcept functions. Code address Clickgithub install String related package go get -u github.com/Echo-Mr-Pengw/go-to-php/str Array related packageUnder development……. String […]

  • [go] golang exercise item – addition, deletion, query and modification of Gorm and MySQL

    Time:2021-10-1

    The following code is placed in users.go under the models package The table structure is consistent with the struct field. Change the underline of the table field into a hump named with capital letters Create, find, delete and update users. See the following specific methods   package models import ( _ “github.com/jinzhu/gorm/dialects/mysql” ) type User […]

  • MySQL case insensitive settings

    Time:2021-9-19

    preface: Generally, in the database usage specification, we will see that the database name and table name are all in lowercase English. Have you ever thought about why lowercase is recommended? Should library table names be case sensitive? With these questions, let’s take a look at this article. 1. A parameter that determines whether case […]

  • CentOS 7 installing mysql8

    Time:2021-9-13

    Download the corresponding RPM from the official website Local installationyum localinstall mysql80-community-release-el7-3.noarch.rpm Install serveryum install mysql-community-server -y Modify password (uppercase and lowercase characters, 8 digits)ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘[email protected]’; remote accessCREATE USER ‘root’@’%’ IDENTIFIED BY ‘PASSWORD’;GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ WITH GRANT OPTION;FLUSH PRIVILEGES;

  • Go implements common PHP functions

    Time:2021-8-31

    # go-to-php The functions commonly used in PHP are encapsulated in golang. In order to distinguish the functions in PHP and go, the functions encapsulated in go to PHP are capitalized in front of the corresponding PHP functionsP。PallordExcept functions. Code address Clickgithub install String related package go get -u github.com/Echo-Mr-Pengw/go-to-php/str Array related packageUnder development……. String […]

  • SSM learning notes (1)

    Time:2021-8-24

    1. Judge the submission method if(request.getMethod().equals(“POST”)){} 2. Return JSON @ResponseBody3. Limited request mode @RequestMapping(value=”/login”,method= RequestMethod.POST) 4.session // String a = “aaaaaa”; //// if the “session object” of the current user is empty (during the first access), a new session object will be created and returned // HttpSession session = request.getSession(true); // System.out.println(“session_a:”+session.getAttribute(“session_a”)); //// create session […]

  • Convert Python numbers to uppercase

    Time:2021-8-15

    In accounting, it is used to convert numbers into uppercase, that is, to convert numbers into Chinese charactersForeign exchange deposit and withdrawal processhttps://www.fx61.com/support class cnumber: cdict = {} gdict = {} xdict = {} def __init__(self): Self.cdict = {1: u ”, 2: u ‘Ten’, 3: u ‘hundred’, 4: u ‘thousand’} Self.xdict = {1: u ‘Yuan’, […]

  • Replace the MySQL field name with hump style

    Time:2021-8-13

    VIM command%s/_([a-z])/\U\1/g \L lowercase\U capital&Are all regular expression matches,Others are: \ 1, \ 2, \ 3,…, \ 9. Represents the 1st, 2nd, 3rd… 9th match.

  • Xiaobai taught himself python (6) Python string (1)

    Time:2020-11-13

    Series articles: It is very suitable for Xiaobai’s Python learning route Self taught Python by Xiaobai (1) Python tutorial Xiaobai self taught python (2) construction of Python development environment Xiaobai taught himself python (3) basic syntax of Python Self taught Python by Xiaobai (4) Python data type Self taught Python by Xiaobai (5) Python operator […]

  • Be careful with tolower and toupper, and you’ll get your system down

    Time:2020-11-13

    I don’t know when to start. Many programmers like to use tolower and toupper to achieve string equality comparison that ignores the case mode. Maybe this habit was introduced from other languages. I guess it’s JS. In order not to cause controversy, I mean JS~ 1: Background 1. Tell a story In our order aggregation […]