Skip to main content

代入.文字列中の変数展開しない(=エスケープ不要、生文字列、rawstring)

Python

py
s = r'xxx'

Swift

swift
s = #"I say "Hello"."#

PHP

php
$s = 'xxx';

TypeScript

ts
s = 'xxx';
ts
s = "xxx";

でも同じだったか?

Ruby

rb
s = 'xxx'
rb
s = %q(c:\tmp\a.txt)

PowerShell

powershell
$s = 'xxx'