Skip to main content

Posts

Showing posts from June, 2019

What kind of president does the United States need now?

Imagine if the Soviet Union still exists and, like the Communist China, the Soviets firmly control the power. Like the present China, the ideology does not allow any democratic ideas to exist. It launches a large-scale spy war and steals advanced Western technology. ..., for the United States, it is definitely a disaster, and the United States is no longer the only superpower; the United States has to maintain a large-scale military presence in Europe, Asia, the Middle East, and South America in response to the Soviet threat. Fortunately, since President Ronald Reagan came to power, he has adopted a smart financial policy and cut off the financing channels of the Soviet Union. At the same time, he used oil weapons to form an alliance with Saudi Arabia. Saudi Arabia increased oil production, causing oil prices to plummet from 35 US dollars per barrel. To the 12 dollars, the result is that the Soviet Union’s oil revenue has plummeted. Eventually, the Soviet economy was exhausted,

python3 string find method

Description It determines if string str occurs in string, or in a substring of string if starting index beg and ending index end are given. Syntax str.find(str, beg=0, end=len(string)) Parameters str − This specifies the string to be searched. beg − This is the starting index, by default its 0. end − This is the ending index, by default its equal to the length of the string. Return Value Index if found and -1 otherwise. Example: Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> str1 = "This is a string to test the find method." >>> str2 = "string" >>> print(str1.find(str2)) 10 >>> print(str1.find(str2,10)) 10 >>> print(str1.find(str2,10+1)) -1 >>>

stock market has got rotten

The stock market is rotten. Despite the great uncertainty, the VIX is still low, no matter good news or bad news, the stock market keep growing. It is totally controlled by the Wall Street. The FED also has problem. Not like Alan Greenspan and many other President of FED, Jerome Powell has a strong boss, Trump, he insist the FED should cut interest rate. No president in history interfare FED like this ever. There is big possibility that FED compromise.