It's my first article. --Name: HotAllure --Origin: Mechanical Engineering (Master) --Hobbies: Detective stories, handicrafts, coffee ――Job content 1: Get on the trend of new information technology and try various footwork lightly ――Job content 2: Acquire deep learning and devise new services
I was assigned to an information-related workplace in Bali Bali, but as mentioned above, my major in university was mechanical, and the opportunity to come into contact with programming was that I did C in class or touched Arduino at a laboratory workshop. , I used Matlab to do the statistical processing necessary for my research, and so on.
After joining the company, I started working with python, which is used by the majority of people mainly for deep learning, and touched Tensorflow to modify the tutorial model. ... but it's not a sweet world (at least for me) that I can suddenly master deep learning, coupled with anxious personality if I don't work on the application after securing the basics.
I've already been very much indebted to Qiita's wonderful articles, but I'm embarrassed to expose my immature self, and I'm stuck studying lonely, and while I'm depressed, I'm studying Qiita I saw a person using it as a memorandum, and I thought it was true.
First of all, I'm using python, and I'm going to use it as a memorandum of where I got stuck and how to solve it. I hope I can write other articles if I can afford it.
I referred to the article by yamao2253, the third pattern. http://qiita.com/yamao2253/items/309fdaa74b8f9d38ac46 The rest is here. http://www.sejuku.net/blog/21923
Was there a variable type such as python or set type? Mumumu.
and_set.py
set1 = set(['a','b','c','d'])
set2 = set(['c','d','e','f'])
#Get the intersection of set1 and set2
and_set = set1.intersection(set2)
print(and_set) #set(['c','d'])
#When returning set to list
and_list=list(and_set)
print(and_list) #['c','d']
The methods intersection and the & operator seem to work in the same way.
https://docs.python.jp/3/tutorial/datastructures.html
set_method.py
#Difference set
dif_set = set1.difference(set2) #(set['a','b'])
#Union
uni_set = set1.union(set2) #(set['a','b','c','d','e','f'])
#Symmetric difference set
symdif_set = set1.symmetric_difference(set2) #(set['a','b','e','f'])
There seem to be many other things.
A python study article by __ zenbo __ in the first year of junior high school. http://qiita.com/zenbo/items/9ed2db6dc7180e6ea1ff
Great at a young age. I also want to apprentice.
Recommended Posts