Tag:Particular year

  • Development of adaptive calendar component

    Time:2021-10-24

    Development of adaptive calendar component design sketch PC end Mobile terminal preview Preview address:Preview address 1. Incoming parameters 1.1 top background picture As shown in the figure above, the photo background in the red circle area is set Defined in component parameters bgSrc: { type: String, default: ‘https://images8.alphacoders.com/992/992329.jpg’ } 1.2 calendar title Circle the regional […]

  • Ctrip school recruitment – Dolphin baby of Ctrip Aquarium (c + +)

    Time:2021-8-1

    ⭐ Article link: www.mengyingjie.com/archives/37/ ⭐ Dolphin baby in Ctrip Aquarium Title Description: There are n cute dolphins in Ctrip aquarium. They are all 0 years old at the beginning, and the life span of each dolphin is m years, And these little dolphins will give birth to a baby dolphin (1 < = birthyear [i] […]

  • Front end date operations

    Time:2021-5-12

    preface Although there are mature and easy-to-use libraries for date processing, such as (momentum JS and date FNS), sometimes we don’t need the whole library in actual development.So I sort out the various operations of date and time in front-end development, which is relatively complete. Some of them come from ourselves, and some from our […]

  • Prints the calendar for the specified year

    Time:2021-4-26

    Enter the year and print out the calendar of the year: #include void PrintEnter(int mod); void PrintSkip(int lastday); void PrintTitle(int year,int month); int JudgeDays(int year, int month); void PrintMonth(int year, int mod, int lastday); int main() { int year; //The last day of every month int lastday = 1; Printf (“please enter year”); scanf(“%d”,&year); //What […]

  • JS conditional statement

    Time:2021-2-25

    1. If structure Grammar: If (condition){ Satisfies the statement block to be executed } Implementation process: 1. Judgment conditions2. If the condition is true, the contents in the statement block are executed3. If the condition is false, skip the statement block to execute other contents be careful: (1) the condition in if should be a […]

  • Date query in SQL statement

    Time:2021-2-8

    Date query in SQL statement —-YYYY –The day before the first day of the current year Select TRUNC (sysdate, ‘yyyy’) – 1 + 8 / 24 from dual — 08:00 am on December 31, 2019 –The first day of the current year Select TRUNC (sysdate, ‘yyyy’) + 8 / 24 from dual — 2020 / […]

  • JavaScript judge leap year

    Time:2021-2-8

    requirement: Enter a year to judge whether it is a leap year (leap year: divisible by 4)alsoNot divisible by 100orYear divisible by 400 Code implementation: //Using function to judge leap year function isRunYear(year) { //Return true for leap year, otherwise return false var flag = false; if (year % 4 == 0 && year % […]

  • JavaScript prints the leap year of a given interval year

    Time:2021-2-7

    requirement: The user inputs the year interval, start year and end year to be judged, and outputs all leap years in the interval. Code implementation: function isRunYear(year) { //Return true for leap year, otherwise return false var flag = false; if (year % 4 == 0 && year % 100 != 0 || year % […]

  • Various skills of Django rest framework — 6. Exception handling

    Time:2021-1-26

    Restframework has built-in basic exception handling, but it’s not enough Various skills of Django rest framework Things to consider in exception handling Exception, in order to keep the API consistent, you should return JSON error_code Error for development_ message Message for users Start connection code The exception handling in the source code is obviously not […]

  • Hadoop example notes

    Time:2021-1-25

    The example comes from 51 CTO.com map.py #!/usr/bin/env python import re import sys for line in sys.stdin: val = line.strip() #Extract the valid part from the line, year is the year, temp is the temperature, Q don’t know (year, temp, q) = (val[15:19], val[87:92], val[92:93]) #Exclude some invalid data if (temp != “+9999” and re.match(“[01459]”, […]

  • LINQ has a very practical selectmany method, which many people can’t use

    Time:2020-12-6

    In normal development, we often see that some friends or colleagues are full of various for, foreach when writing code. If there is too much code, the readability is very poor, and it is particularly cumbersome. In fact, there are many methods in FCL to help us improve the sense of reading. In reality, many […]

  • Hand in hand to teach you to use 6 lines of code to make calendar generator

    Time:2020-11-23

    Series articles: Escape character Hand in hand to teach you to use 6 lines of code to make calendar generator 1. Set production objectives Objectives: Enter the specified year and month to generate the calendar It can be run repeatedly 2. Make the required function Enter the specified year and month → input functionGenerate monthly […]