Mexicans were there enveloped5 in their sarapes; Chinamen in their large-sleeved tunics6, pointed7 shoes, and conical hats; one or two Kanucks from the coast; and even a sprinkling of Black Feet, Grosventres, or Flatheads, from the banks of the Trinity river.
The scene is in San Francisco, the capital of California, but not at the period when the placer-mining fever was raging—from 1849 to 1852. San Francisco was no longer what it had been then, a caravanserai, a terminus, an inn, where for a night there slept the busy men who were hastening to the gold-fields west of the Sierra Nevada. At the end of some twenty years the old unknown Yerba-Buena had given place to a town unique of its kind, peopled by 100,000 inhabitants, built under the shelter of a couple of hills, away from the shore, but stretching off to the farthest heights in the background—a city in short which has dethroned Lima, Santiago, Valparaiso, and every other rival, and which the Americans have made the queen of the Pacific, the "glory of the western coast!"
It was the 15th of May, and the weather was still cold. In California, subject as it is to the direct action of the polar currents, the first weeks of this month are somewhat similar to the last weeks of March in Central Europe. But the cold was hardly noticeable in the thick of the auction crowd. The bell with its incessant8 clangour had[Pg 3] brought together an enormous throng9, and quite a summer temperature caused the drops of perspiration10 to glisten11 on the foreheads of the spectators which the cold outside would have soon solidified12.
Do not imagine that all these folks had come to the auction-room with the intention of buying. I might say that all of them had but come to see. Who was going to be mad enough, even if he were rich enough, to purchase an isle13 of the Pacific, which the government had in some eccentric moment decided14 to sell? Would the reserve price ever be reached? Could anybody be found to work up the bidding? If not, it would scarcely be the fault of the public crier, who tried his best to tempt15 buyers by his shoutings and gestures, and the flowery metaphors16 of his harangue17. People laughed at him, but they did not seem much influenced by him.
"An island! an isle to sell!" repeated Gingrass.
"But not to buy!" answered an Irishman, whose pocket did not hold enough to pay for a single pebble18.
"An island which at the valuation will not fetch six dollars an acre!" said the auctioneer.
"And which won't pay an eighth per cent.!" replied a big farmer, who was well acquainted with agricultural speculations19.
"An isle which measures quite sixty-four miles round[Pg 4] and has an area of two hundred and twenty-five thousand acres!"
"Is it solid on its foundation?" asked a Mexican, an old customer at the liquor-bars, whose personal solidity seemed rather doubtful at the moment.
"An isle with forests still virgin20!" repeated the crier, "with prairies, hills, watercourses—"
"Warranted?" asked a Frenchman, who seemed rather inclined to nibble21.
"Yes! warranted!" added Felporg, much too old at his trade to be moved by the chaff22 of the public.
"For two years?"
"To the end of the world!"
"Beyond that?"
"A freehold island!" repeated the crier, "an island without a single noxious23 animal, no wild beasts, no reptiles24!—"
"No birds?" added a wag.
"No insects?" inquired another.
"An island for the highest bidder!" said Dean Felporg, beginning again. "Come, gentlemen, come! Have a little courage in your pockets! Who wants an island in perfect state of repair, never been used, an island in the Pacific, that ocean of oceans? The valuation is a mere25 nothing! It is put at eleven hundred thousand dollars, is there any[Pg 5] one will bid? Who speaks first? You, sir?—you, over there nodding your head like a porcelain26 mandarin27? Here is an island! a really good island! Who says an island?"
"Pass it round!" said a voice as if they were dealing28 with a picture or a vase.
And the room shouted with laughter, but not a half-dollar was bid.
However, if the lot could not be passed round, the map of the island was at the public disposal. The whereabouts of the portion of the globe under consideration could be accurately29 ascertained30. There was neither surprise nor disappointment to be feared in that respect. Situation, orientation31, outline, altitudes, levels, hydrography, climatology, lines of communication, all these were easily to be verified in advance. People were not buying a pig in a poke32, and most undoubtedly33 there could be no mistake as to the nature of the goods on sale. Moreover, the innumerable journals of the United States, especially those of California, with their dailies, bi-weeklies, weeklies, bi-monthlies, monthlies, their reviews, magazines, bulletins, &c., had been for several months directing constant attention to the island whose sale by auction had been authorized34 by Act of Congress.
The island was Spencer Island, which lies in the [Pg 6]west-south-west of the Bay of San Francisco, about 460 miles from the Californian coast, in 32° 15' north latitude35, and 145° 18' west longitude36, reckoning from Greenwich. It would be impossible to imagine a more isolated37 position, quite out of the way of all maritime38 or commercial traffic, although Spencer Island was relatively39, not very far off, and situated40 practically in American waters. But thereabouts the regular currents diverging41 to the north and south have formed a kind of lake of calms, which is sometimes known as the "Whirlpool of Fleurieu."
It is in the centre of this enormous eddy42, which has hardly an appreciable43 movement, that Spencer Island is situated. And so it is sighted by very few ships. The main routes of the Pacific, which join the new to the old continent, and lead away to China or Japan, run in a more southerly direction. Sailing-vessels would meet with endless calms in the Whirlpool of Fleurieu; and steamers, which always take the shortest road, would gain no advantage by crossing it. Hence ships of neither class know anything of Spencer Island, which rises above the waters like the isolated summit of one of the submarine mountains of the Pacific. Truly, for a man wishing to flee from the noise of the world, seeking quiet in solitude44, what could be better than this island, lost within a few hundred miles of the coast? For a voluntary Robinson Crusoe, it would[Pg 7] be the very ideal of its kind! Only of course he must pay for it.
And now, why did the United States desire to part with the island? Was it for some whim45? No! A great nation cannot act on caprice in any matter, however simple. The truth was this: situated as it was, Spencer Island had for a long time been known as a station perfectly46 useless. There could be no practical result from settling there. In a military point of view it was of no importance, for it only commanded an absolutely deserted47 portion of the Pacific. In a commercial point of view there was a similar want of importance, for the products would not pay the freight either inwards or outwards48. For a criminal colony it was too far from the coast. And to occupy it in any way, would be a very expensive undertaking49. So it had remained deserted from time immemorial, and Congress, composed of "eminently50 practical" men, had resolved to put it up for sale—on one condition only, and that was, that its purchaser should be a free American citizen. There was no intention of giving away the island for nothing, and so the reserve price had been fixed51 at $1,100,000. This amount for a financial society dealing with such matters was a mere bagatelle52, if the transaction could offer any advantages; but as we need hardly repeat, it offered none, and competent men[Pg 8] attached no more value to this detached portion of the United States, than to one of the islands lost beneath the glaciers53 of the Pole.
In one sense, however, the amount was considerable. A man must be rich to pay for this hobby, for in any case it would not return him a halfpenny per cent. He would even have to be immensely rich for the transaction was to be a "cash" one, and even in the United States it is as yet rare to find citizens with $1,100,000 in their pockets, who would care to throw them into the water without hope of return.
And Congress had decided not to sell the island under the price. Eleven hundred thousand dollars, not a cent less, or Spencer Island would remain the property of the union.
It was hardly likely that any one would be mad enough to buy it on the terms.
Besides, it was expressly reserved that the proprietor54, if one offered, should not become king of Spencer Island, but president of a republic. He would gain no right to have subjects, but only fellow-citizens, who could elect him for a fixed time, and would be free from re-electing him indefinitely. Under any circumstances he was forbidden to play at monarchy55. The union could never tolerate the foundation of a kingdom, no matter how small, in American waters.
[Pg 9]
This reservation was enough to keep off many an ambitious millionaire, many an aged56 nabob, who might like to compete with the kings of the Sandwich, the Marquesas, and the other archipelagoes of the Pacific.
In short, for one reason or other, nobody presented himself. Time was getting on, the crier was out of breath in his efforts to secure a buyer, the auctioneer orated without obtaining a single specimen57 of those nods which his estimable fraternity are so quick to discover; and the reserve price was not even mentioned.
However, if the hammer was not wearied with oscillating above the rostrum, the crowd was not wearied with waiting around it. The joking continued to increase, and the chaff never ceased for a moment. One individual offered two dollars for the island, costs included. Another said that a man ought to be paid that for taking it.
And all the time the crier was heard with,—
"An island to sell! an island for sale!"
数据清洗、筛选、去重、排序、提取
import re
#a='Beautiful, is; better*than\nugly'
a='Mexicans were there enveloped5 in their sarapes; Chinamen in their large-sleeved tunics6, pointed7 shoes, and conical hats; one or two Kanucks from the coast; and even a sprinkling of Black Feet, Grosventres, or Flatheads, from the banks of the Trinity river.The scene is in San Francisco, the capital of California, but not at the period when the placer-mining fever was raging—from 1849 to 1852. San Francisco was no longer what it had been then, a caravanserai, a terminus, an inn, where for a night there slept the busy men who were hastening to the gold-fields west of the Sierra Nevada. At the end of some twenty years the old unknown Yerba-Buena had given place to a town unique of its kind, peopled by 100,000 inhabitants, built under the shelter of a couple of hills, away from the shore, but stretching off to the farthest heights in the background—a city in short which has dethroned Lima, Santiago, Valparaiso, and every other rival, and which the Americans have made the queen of the Pacific, the "glory of the western coast!"It was the 15th of May, and the weather was still cold. In California, subject as it is to the direct action of the polar currents, the first weeks of this month are somewhat similar to the last weeks of March in Central Europe. But the cold was hardly noticeable in the thick of the auction crowd. The bell with its incessant8 clangour had[Pg 3] brought together an enormous throng9, and quite a summer temperature caused the drops of perspiration10 to glisten11 on the foreheads of the spectators which the cold outside would have soon solidified12.Do not imagine '
# 四个分隔符为:, ; * \n
x= re.split(' |,|; |\*|\n',a)
for t in x:
print(t)
去重、排序
import re
#a='Beautiful, is; better*than\nugly'
a='Mexicans were there enveloped5 in their sarapes; Chinamen in their large-sleeved tunics6, pointed7 shoes, and conical hats; one or two Kanucks from the coast; and even a sprinkling of Black Feet, Grosventres, or Flatheads, from the banks of the Trinity river.The scene is in San Francisco, the capital of California, but not at the period when the placer-mining fever was raging—from 1849 to 1852. San Francisco was no longer what it had been then, a caravanserai, a terminus, an inn, where for a night there slept the busy men who were hastening to the gold-fields west of the Sierra Nevada. At the end of some twenty years the old unknown Yerba-Buena had given place to a town unique of its kind, peopled by 100,000 inhabitants, built under the shelter of a couple of hills, away from the shore, but stretching off to the farthest heights in the background—a city in short which has dethroned Lima, Santiago, Valparaiso, and every other rival, and which the Americans have made the queen of the Pacific, the "glory of the western coast!"It was the 15th of May, and the weather was still cold. In California, subject as it is to the direct action of the polar currents, the first weeks of this month are somewhat similar to the last weeks of March in Central Europe. But the cold was hardly noticeable in the thick of the auction crowd. The bell with its incessant8 clangour had[Pg 3] brought together an enormous throng9, and quite a summer temperature caused the drops of perspiration10 to glisten11 on the foreheads of the spectators which the cold outside would have soon solidified12.Do not imagine '
# 四个分隔符为:, ; * \n
x= re.split(' |,|; |\*|\n',a)
lista=list(set(x))
lista.sort(key=len)
for t in sorted(lista,key = len):
print(t)
wget -c https://github.com/kkos/oniguruma/archive/refs/tags/v6.9.7.1.tar.gz
tar -zxvf v6.9.7.1.tar.gz
cd oniguruma-6.9.7.1
./autogen.sh && ./configure --prefix=/usr
make && make install
#安装GD库示例
cd php-8.1.0/ext/gd
/opt/php/8.1.0/bin/phpize
Configuring for:
PHP Api Version: 20210902
Zend Module Api No: 20210902
Zend Extension Api No: 420210902
./configure --with-php-config=/opt/php/8.1.0/bin/php-config
make && make install
下面是示例文件 # Set stdv mode to PAL (as used in Europe) sdtv_mode=2 # Force the monitor to HDMI mode so that sound will be sent over HDMI cable hdmi_drive=2 # Set monitor mode to DMT hdmi_group=2 # Set monitor resolution to 1024x768 XGA 60Hz (HDMI_DMT_XGA_60) hdmi_mode=16 # Make display smaller to stop text spilling off the screen overscan_left=20 overscan_right=12 overscan_top=10 overscan_bottom=10 这是另一个示例文件, 包含了各种功能的扩展文档.
import time
import signal
def signal_handler(signal,frame):
print('You pressed Ctrl+C!')
signal.signal(signal.SIGINT,signal_handler)
print('Press Ctrl+C')
for x in range(1,100):
time.sleep(2)
print(x)
import time
if __name__ == "__main__":
try:
time.sleep(10)
except KeyboardInterrupt:
print("Application exit!")
# 自定义信号处理函数
def my_handler(signum, frame):
global stop
stop = True
print("终止")
# 设置相应信号处理的handler
signal.signal(signal.SIGINT, my_handler) #读取Ctrl+c信号
stop = False
while True:
try:
#读取到Ctrl+c前进行的操作
if stop:
# 中断时需要处理的代码
pass
# break #break只能退出当前循坏
#中断程序需要用 raise
except Exception as e:
print(str(e))
break
【摘要】 我们购买智能家居产品后,买回来拆箱后第一件事通常就是给这个新的硬件进行配网,所谓配网,也就是让这个新的物联网设备联入我们的局域网内,让这个物联网设备可以进行网络通讯。我们在上一篇文章《MicroPython(ESP32/ESP8266) 实现web控制GPIO》中已经了解到了如何使用ESP32和ESP8266通过联网来实现在Web中控制板载的 LED 灯开关。本文将介绍…
我们购买智能家居产品后,买回来拆箱后第一件事通常就是给这个新的硬件进行配网,所谓配网,也就是让这个新的物联网设备联入我们的局域网内,让这个物联网设备可以进行网络通讯。我们在上一篇文章《MicroPython(ESP32/ESP8266) 实现web控制GPIO》中已经了解到了如何使用ESP32和ESP8266通过联网来实现在Web中控制板载的 LED 灯开关。本文将介绍基于 MicroPython 来实现的 ESP32/ESP8266 Wifi配网。