Be yourself; Everyone else is already taken.
— Oscar Wilde.
This is the first post on my new blog. I’m just getting this new blog going, so stay tuned for more. Subscribe below to get notified when I post new updates.
Designed bu Lu
Be yourself; Everyone else is already taken.
— Oscar Wilde.
This is the first post on my new blog. I’m just getting this new blog going, so stay tuned for more. Subscribe below to get notified when I post new updates.

at first, you need to use input function
then, do not forget to use int or float,or else,you can not see the result
Besides,you can also write it as roomnumber= int(input(“what is the roomnumber of ken’s class”))


1.input
there is the fixed form of inputing file,you just need to change the routine,and then you can inout a txt file as you want
2.output
this is a funcion.the last line is used to run the funcion.the second line is to create a new txt file and the third line is to write the content in the txt file.

at first, you need to create a dictionary.
The brackets should be {}
The name and date of the coding is the key of the dictionary
luzhizhou and 1125 is the content related with the key
If you want to print it,please follow the form,with in the [],youneed to writhe the name of the key.


print(str1[0]) means that the first one of the string
print(str2[1:5]) mens that the second to the fifth one of the string
print(str1+str2) means that add these two strings together
!!! do not forget the quotation marks
tuple
1.empty tuple:write nothing inside
tup1 = ()
2.one tuple:remember to print “,”after
tup1 = (‘lu’,)
3.example: tup1[0] means that the first one ofthe tuple, tup2[0:3] means that the first 4 of the tuple
tup1 = (‘lu’, ‘zhi’, ‘zhou’,2019)
tup2 = (1, 2, 3, 4, 5, 6, 7 )
print(tup1[0])
print(tup2[0:3])
list:alomst the same meaning of tuple
list1 = [‘lu’, ‘zhi’, ‘zhou’,2019]
list2 = [1, 2, 3, 4, 5, 6, 7 ]
print(list1[0])
print(list2[0:3])
!!! be care of the brackets

This is the login part of my spanish dictionary app
For Recursion,the red rectangle is the most important step .It must have itself.

The result is

This is a spanish dictionary that I use for testing my spanish words.


When I start it , it will show ten spanish word gradually.If I know the first word, I wil press 0,then it will show the next word,but if I do not know the first word, I will press 1, then it will show the chinese meaning for me.It is useful.


