LoginSignup
0
1

More than 3 years have passed since last update.

joinがいまいち分からん

Posted at

ある有料サイトに登録してPythonを進めてるけど
まさかの何いってるか分からんから

分からん単語?を検索して
他のページで理解して戻ってくるという遠回な勉強が始まりました‥
なぜサイトでは説明してくれていないのかイライラ!!!とかはなくて、
しないといけないことを順番に提示してくれているだけでもありがたいw

で、

元は
def concat(*args, sep="/"):
return sep.join(args)

どっからjoin出てきた??
ってないいてjoinを検索してみると

test = ['ab', 'c', 'de']
result = ''
for x in test:
result += x
print(result)

abcde

が出てきた。
いきなりなんで
result = ''
でてきた?
ほんでなんで''消えた???

え??joinどころちゃうw
なにこれ泣きそう

0
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1