-
The shackle furnace material is a little more talkative.
-
Create a display group that only contains the node set, this node set may not be displayed, but with probe value you can output all the node numbers and their corresponding coordinates in this invisible display group In addition, in the main menu bar of the display module, the result can be output, the specific operation is a little forgotten, you can follow the prompts to operate Good luck!
-
First of all, for your initial question, max(i for i in roudict) (or even max(roudict)) will be fine if roudict fits the (, format).
Then it's a bit awkward to use a dictionary to store coordinates, and it's more natural to use lists and more abstract classes, but I'm not good at OOP ......For list storage, the integration function can be changed to such a thing (lop(list of points) is a list of points set).
def integral(lop):
prev, i = (none, none), 0 #initialize
for (x, y) in lop:
if prev: #
x0, y0), prev = prev, (x, y)i += (y0 + y) *x - x0) / 2else:
prev = x, y
return i
# way to access max_x of lop:
max(x for (x, y) in lop)
-
What type of roudict is needs to be explained. It's python's built-in set()?
-
If you have a python interface in your GIS, see the documentation. If not, you can export the GIS data to Vector format. Then use python to parse this text file.
-
lines are tuples of the coordinates of the two endpoints of each line in the graph you obtained. Such as(((0,0),(1,1))(0,2),(1,3))....
for line in lines:
p0, p1 = line
You can iterate through the points (p0[0], p1[0]), p0[1], p1[1]) is the value of the line.
Don't quite understand if you have a lot of straight lines in the graph, do you want to choose the beginning and end values of the straight line, or just a straight line, read the points of the straight line?
A group [ yī qún ].
Basic explanation: 1. The number of tables. Use in groups of people or animals. >>>More
The word carnival experiences the lively and cheerful atmosphere of the flowers, dancing on the green grass and carnival, the flowers go to school, the author uses anthropomorphism to express, the flowers also go to school like themselves, and when they don't see them, they are underground, and now they are blooming, and they are lively and cheerful. >>>More
It's very simple、Crawl on top of your girlfriend to block her。 >>>More
First of all, the enemy is a group of prisms, which means that the use of troops & direct use of fortifications is over. >>>More
This group generally manifests itself as an aggregation of latecomers. The reasons for the formation of such informal groups are complex, and some are formed on the basis of having fun; Some are transformed from other types of informal groups; Some members of this informal group generally have the experience of having their self-esteem tarnished in the formal group, and their academic failure has exacerbated their low self-esteem, anxiety and tension. In order to alleviate this internal and external mental pressure, and in order to find understanding and respect, they often gather with students who sympathize with them and have something in common with them. >>>More