python self-test - Operation class topic

Operating class title

49.Python two variables exchange
50. will be used when reading a file operation is read, readline or the readlines, outlined their respective roles
when 51.json serialized data type which can be processed? How to customize support datetime type?
When 52.json serialization, default encountered Chinese will be converted into unicode, how to do if you want to keep Chinese?
53. There are two disk files A and B, each line of characters is stored, the information required these two files are merged (in alphabetical order), output to a new file in C.
54. If the current date is 20190530, the output function N required to write a date days, (such as N 2, the output 20,190,601).
55. Write a function that takes an integer n, a return function, the function is a function of function parameters and returns the result of multiplying n.
56. What is wrong with the following code, how to improve?

1 def strappend(num):
2     str='first'
3     for i in range(num):
4         str+=str(i)
5     return str

 


57. The outputs of all even-numbered line of code between 1-100.
The role of 58.with statement, write a piece of code?
59.python json string dictionary and mutual conversion process
60. Please write a logical Python, calculating a number of capital letters in the file
61. The connection write a Python Mongo database, and query code.
62. talk about the basic types of Redis.
63. Please write a Python connection code Redis database.
64. Please write a Python MySQL database connection code.
65. Learn Redis transaction it?
66. understand the three paradigms database it?
67. Learn distributed lock it?
68. The realization of a distributed lock Reids functions with Python.
69. Write a Python code to create an index using Mongo database.
---------------------
Copyright: Original article is CSDN blogger "GitChat the blog", following the CC 4.0 by-sa copyright agreements, please attach a reprint the original source link and this statement.
Original link: https: //blog.csdn.net/valada/article/details/90761019

Guess you like

Origin www.cnblogs.com/98ZHANG/p/11331936.html